remove selectedKey

This commit is contained in:
Matt Hill
2023-03-28 08:25:55 -06:00
parent 60a6a27682
commit be48be2de6
3 changed files with 2 additions and 3 deletions

View File

@@ -145,7 +145,6 @@ export class Value<A extends ValueSpec> extends IBuilder<A> {
name: string; name: string;
description: string | null; description: string | null;
warning: string | null; warning: string | null;
selectKey: string;
variants: Variants<{ [key: string]: { name: string; spec: InputSpec } }>; variants: Variants<{ [key: string]: { name: string; spec: InputSpec } }>;
nullable: boolean; nullable: boolean;
default: string | null; default: string | null;

View File

@@ -66,8 +66,7 @@ export interface ValueSpecBoolean extends WithStandalone {
export interface ValueSpecUnion extends WithStandalone { export interface ValueSpecUnion extends WithStandalone {
type: "union"; type: "union";
selectKey: string; nullable: boolean;
nullable: boolean
variants: Record<string, { name: string; spec: InputSpec }>; variants: Record<string, { name: string; spec: InputSpec }>;
} }

View File

@@ -143,6 +143,7 @@ export default async function makeFileContent(
name: ${JSON.stringify(value.name || null)}, name: ${JSON.stringify(value.name || null)},
description: ${JSON.stringify(value.description || null)}, description: ${JSON.stringify(value.description || null)},
warning: ${JSON.stringify(value.warning || null)}, warning: ${JSON.stringify(value.warning || null)},
nullable: false,
default: ${JSON.stringify(value.default || null)}, default: ${JSON.stringify(value.default || null)},
variants: ${variants}, variants: ${variants},
})`; })`;