chore: Update the lite types to include the union and enum (#1542)

This commit is contained in:
J M
2022-06-15 19:31:47 -06:00
committed by GitHub
parent 0b7d8b4db0
commit 75a2b2d2ab

View File

@@ -244,21 +244,25 @@ export type ValueSpecList =
"enum", "enum",
WithDescription< WithDescription<
WithDefault< WithDefault<
{ ListSpec<
values: string[]; ValueSpecEnum
"value-names": { >,
[key: string]: string;
};
},
string[] string[]
> >
> >
> >
| Subtype< | Subtype<
"object", "object",
WithDescription<WithDefault<ListSpec<Tag<"object", WithDescription<WithDefault<ValueSpecObject, Config>>>>, {}[]>> WithDescription<WithDefault<ListSpec<ValueSpecObject>, {}[]>>
>
| Subtype<
"union",
WithDescription<WithDefault<ListSpec<ValueSpecUnion>, string[]>>
>; >;
export type ValueSpecEnum = {
values: string[],
"value-names": { [key: string]: string };
}
export type SetResult = { export type SetResult = {
/** These are the unix process signals */ /** These are the unix process signals */