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:
bymyself
2025-11-15 14:20:25 -08:00
parent bc6f40b713
commit a938b52d37

View File

@@ -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'