test: narrow widget helper value type

This commit is contained in:
dante01yoon
2026-04-14 08:25:54 +09:00
parent 104936d0b0
commit 047d1a690e

View File

@@ -24,7 +24,7 @@ type SourceNode = Pick<LGraphNode, 'graph' | 'outputs' | 'widgets'>
function createWidget(
name: string,
value: unknown,
value: IBaseWidget['value'],
callback = vi.fn()
): IBaseWidget {
return fromPartial<IBaseWidget>({