[Refactor] useSeedWidget composable (#2508)

This commit is contained in:
Chenlei Hu
2025-02-10 23:55:59 -05:00
committed by GitHub
parent 0c2879b6f4
commit a93f57eeb2
4 changed files with 61 additions and 98 deletions

View File

@@ -297,7 +297,12 @@ const zIntInputSpec = inputSpec([
step: z.number().optional(),
// Note: Many node authors are using INT to pass list of INT.
// TODO: Add list of ints type.
default: z.union([z.number(), z.array(z.number())]).optional()
default: z.union([z.number(), z.array(z.number())]).optional(),
/**
* If true, a linked widget will be added to the node to select the mode
* of `control_after_generate`.
*/
control_after_generate: z.boolean().optional()
})
])