mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
remove selectedKey
This commit is contained in:
@@ -145,7 +145,6 @@ export class Value<A extends ValueSpec> extends IBuilder<A> {
|
||||
name: string;
|
||||
description: string | null;
|
||||
warning: string | null;
|
||||
selectKey: string;
|
||||
variants: Variants<{ [key: string]: { name: string; spec: InputSpec } }>;
|
||||
nullable: boolean;
|
||||
default: string | null;
|
||||
|
||||
@@ -66,8 +66,7 @@ export interface ValueSpecBoolean extends WithStandalone {
|
||||
|
||||
export interface ValueSpecUnion extends WithStandalone {
|
||||
type: "union";
|
||||
selectKey: string;
|
||||
nullable: boolean
|
||||
nullable: boolean;
|
||||
variants: Record<string, { name: string; spec: InputSpec }>;
|
||||
}
|
||||
|
||||
|
||||
@@ -143,6 +143,7 @@ export default async function makeFileContent(
|
||||
name: ${JSON.stringify(value.name || null)},
|
||||
description: ${JSON.stringify(value.description || null)},
|
||||
warning: ${JSON.stringify(value.warning || null)},
|
||||
nullable: false,
|
||||
default: ${JSON.stringify(value.default || null)},
|
||||
variants: ${variants},
|
||||
})`;
|
||||
|
||||
Reference in New Issue
Block a user