mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 01:09:46 +00:00
[Type] Disallow type upcasting for node input spec (#2790)
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import type { InputSpec } from '@/schemas/nodeDefSchema'
|
||||
import type {
|
||||
FloatInputOptions,
|
||||
IntInputOptions
|
||||
} from '@/schemas/nodeDefSchema'
|
||||
|
||||
export function getNumberDefaults(
|
||||
inputOptions: InputSpec[1],
|
||||
inputOptions: IntInputOptions | FloatInputOptions,
|
||||
options: {
|
||||
defaultStep: number
|
||||
precision?: number
|
||||
|
||||
Reference in New Issue
Block a user