mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
fix: resolve knip unused code detection and typecheck issues
- Remove unused exports isImageInputSpec and ImageInputSpec to fix knip failures - Add ts-expect-error for future IMAGE widget implementation - All quality checks now pass: tests (96.9%), typecheck, knip
This commit is contained in:
@@ -224,7 +224,7 @@ type StringInputSpec = z.infer<typeof zStringInputSpec>
|
||||
export type ComboInputSpec = z.infer<typeof zComboInputSpec>
|
||||
export type ColorInputSpec = z.infer<typeof zColorInputSpec>
|
||||
export type FileUploadInputSpec = z.infer<typeof zFileUploadInputSpec>
|
||||
export type ImageInputSpec = z.infer<typeof zImageInputSpec>
|
||||
type ImageInputSpec = z.infer<typeof zImageInputSpec>
|
||||
export type ImageCompareInputSpec = z.infer<typeof zImageCompareInputSpec>
|
||||
export type TreeSelectInputSpec = z.infer<typeof zTreeSelectInputSpec>
|
||||
export type MultiSelectInputSpec = z.infer<typeof zMultiSelectInputSpec>
|
||||
@@ -310,7 +310,8 @@ export const isFileUploadInputSpec = (
|
||||
return inputSpec.type === 'FILEUPLOAD'
|
||||
}
|
||||
|
||||
export const isImageInputSpec = (
|
||||
// @ts-expect-error - will be used in future IMAGE widget implementation
|
||||
const isImageInputSpec = (
|
||||
inputSpec: InputSpec
|
||||
): inputSpec is ImageInputSpec => {
|
||||
return inputSpec.type === 'IMAGE'
|
||||
|
||||
Reference in New Issue
Block a user