type NodeInputFloat = { type: "float"; value?: number; min?: number; max?: number; step?: number; } type NodeInputInteger = { type: "integer"; value?: number; min?: number; max?: number; } type NodeInputBoolean = { type: "boolean"; value?: boolean; } type NodeInputSelect = { type: "select"; labels: string[]; value?: number; } type NodeInputSeed = { type: "seed" value?: number; } type DefaultOptions = { internal?: boolean; external?: boolean; setting?: string; label?: string; } export type NodeInput = (NodeInputSeed | NodeInputBoolean | NodeInputFloat | NodeInputInteger | NodeInputSelect) & DefaultOptions; export type NodeInputType> = { [K in keyof T]: T[K]["value"] };