mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
test: narrow widget helper value type
This commit is contained in:
@@ -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>({
|
||||
|
||||
Reference in New Issue
Block a user