UNPKG

701 BTypeScriptView Raw
1export type ParameterType = 'Boolean' | 'Symbol' | 'Number' | 'Enum';
2export type InstallationParameterType = ParameterType | 'Secret';
3export type ParameterOption = string | {
4 [key: string]: string;
5};
6export interface ParameterDefinition<T = ParameterType> {
7 name: string;
8 id: string;
9 description?: string;
10 type: T;
11 required?: boolean;
12 default?: boolean | string | number;
13 options?: ParameterOption[];
14 labels?: {
15 empty?: string;
16 true?: string;
17 false?: string;
18 };
19}
20export type DefinedParameters = Record<string, string | number | boolean>;
21export type FreeFormParameters = Record<string, any> | Array<any> | number | string | boolean;