mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
use hard coded select key
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ 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 }>;
|
||||||
}
|
}
|
||||||
@@ -161,3 +160,5 @@ export type UniqueBy =
|
|||||||
| { all: readonly UniqueBy[] | UniqueBy[] };
|
| { all: readonly UniqueBy[] | UniqueBy[] };
|
||||||
|
|
||||||
export type DefaultString = string | { charset: string; len: number };
|
export type DefaultString = string | { charset: string; len: number };
|
||||||
|
|
||||||
|
export const unionSelectKey = 'unionSelectKey' as const
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ export default async function makeFileContent(
|
|||||||
name: ${JSON.stringify(value.name || null)},
|
name: ${JSON.stringify(value.name || null)},
|
||||||
description: ${JSON.stringify(value.tag.description || null)},
|
description: ${JSON.stringify(value.tag.description || null)},
|
||||||
warning: ${JSON.stringify(value.tag.warning || null)},
|
warning: ${JSON.stringify(value.tag.warning || null)},
|
||||||
selectKey: ${JSON.stringify(value.tag.id || null)},
|
|
||||||
nullable: false,
|
nullable: false,
|
||||||
default: ${JSON.stringify(value.default || null)},
|
default: ${JSON.stringify(value.default || null)},
|
||||||
variants: ${variants},
|
variants: ${variants},
|
||||||
@@ -267,9 +266,6 @@ export default async function makeFileContent(
|
|||||||
warning: ${JSON.stringify(
|
warning: ${JSON.stringify(
|
||||||
value?.spec?.tag?.warning || null
|
value?.spec?.tag?.warning || null
|
||||||
)},
|
)},
|
||||||
selectKey: ${JSON.stringify(
|
|
||||||
value?.spec?.tag?.id || null
|
|
||||||
)},
|
|
||||||
variants: ${variants},
|
variants: ${variants},
|
||||||
nullable: false,
|
nullable: false,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user