[chore] Clean up ignores after strict mode enabled (#680)

- Replaces all `ts-ignore` with `ts-expect-error`
- Resolves https://github.com/Comfy-Org/litegraph.js/issues/578
This commit is contained in:
filtered
2025-03-03 01:56:15 +11:00
committed by GitHub
parent 165cf210d3
commit af7db40fce
7 changed files with 55 additions and 57 deletions

View File

@@ -14,20 +14,20 @@ type WidgetConstructor = {
}
export const WIDGET_TYPE_MAP: Record<string, WidgetConstructor> = {
// @ts-ignore https://github.com/Comfy-Org/litegraph.js/issues/616
// @ts-expect-error https://github.com/Comfy-Org/litegraph.js/issues/616
button: ButtonWidget,
// @ts-ignore #616
// @ts-expect-error #616
toggle: BooleanWidget,
// @ts-ignore #616
// @ts-expect-error #616
slider: SliderWidget,
// @ts-ignore #616
// @ts-expect-error #616
knob: KnobWidget,
// @ts-ignore #616
// @ts-expect-error #616
combo: ComboWidget,
// @ts-ignore #616
// @ts-expect-error #616
number: NumberWidget,
// @ts-ignore #616
// @ts-expect-error #616
string: TextWidget,
// @ts-ignore #616
// @ts-expect-error #616
text: TextWidget,
}