mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
[TS] Enable noUnusedLocals (#3108)
This commit is contained in:
@@ -1237,9 +1237,7 @@ export class ComfyApp {
|
||||
let message = error.response.error.message
|
||||
if (error.response.error.details)
|
||||
message += ': ' + error.response.error.details
|
||||
for (const [nodeID, nodeError] of Object.entries(
|
||||
error.response.node_errors
|
||||
)) {
|
||||
for (const [_, nodeError] of Object.entries(error.response.node_errors)) {
|
||||
// @ts-expect-error
|
||||
message += '\n' + nodeError.class_type + ':'
|
||||
// @ts-expect-error
|
||||
|
||||
@@ -48,6 +48,7 @@ function parseVorbisComment(dataView: DataView): Record<string, string> {
|
||||
let offset = 0
|
||||
const vendorLength = dataView.getUint32(offset, true)
|
||||
offset += 4
|
||||
// @ts-expect-error unused variable
|
||||
const vendorString = getString(dataView, offset, vendorLength)
|
||||
offset += vendorLength
|
||||
|
||||
|
||||
@@ -68,16 +68,6 @@ function parseExifData(exifData) {
|
||||
return ifdData
|
||||
}
|
||||
|
||||
function splitValues(input) {
|
||||
var output = {}
|
||||
for (var key in input) {
|
||||
var value = input[key]
|
||||
var splitValues = value.split(':', 2)
|
||||
output[splitValues[0]] = splitValues[1]
|
||||
}
|
||||
return output
|
||||
}
|
||||
|
||||
export function getWebpMetadata(file) {
|
||||
return new Promise<Record<string, string>>((r) => {
|
||||
const reader = new FileReader()
|
||||
|
||||
@@ -108,7 +108,7 @@ function dragElement(dragEl, settings): () => void {
|
||||
}
|
||||
|
||||
// When the element resizes (e.g. view queue) ensure it is still in the windows bounds
|
||||
const resizeObserver = new ResizeObserver(() => {
|
||||
new ResizeObserver(() => {
|
||||
ensureInBounds()
|
||||
}).observe(dragEl)
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
// @ts-strict-ignore
|
||||
import { useDialogStore } from '@/stores/dialogStore'
|
||||
|
||||
import { $el } from '../ui'
|
||||
|
||||
export class ComfyDialog<
|
||||
|
||||
Reference in New Issue
Block a user