add select spec to union list items

This commit is contained in:
Matt Hill
2023-03-27 22:42:38 -06:00
parent 5caa9db886
commit 53ef640ed7
4 changed files with 27 additions and 8 deletions

View File

@@ -5,9 +5,8 @@ import {
InputSpec,
UniqueBy,
ValueSpecList,
ValueSpecListOf,
} from "../config-types";
import { guardAll, typeFromProps } from "../../util";
import { guardAll } from "../../util";
/**
* Used as a subtype of Value.list
@@ -116,6 +115,11 @@ export class List<A extends ValueSpecList> extends IBuilder<A> {
default: Record<string, unknown>[];
range: string;
spec: {
select: {
name: string;
description: string | null;
warning: string | null;
}
variants: Variants<{
[key: string]: { name: string; spec: InputSpec };
}>;