mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-27 02:04:09 +00:00
[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:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user