rename enum and add multiselect

This commit is contained in:
Matt Hill
2023-03-25 12:49:58 -06:00
parent 997daca59b
commit 16fed45f4b
9 changed files with 58 additions and 53 deletions

View File

@@ -59,24 +59,6 @@ export class List<A extends ValueSpecList> extends IBuilder<A> {
...a,
});
}
static enum<
A extends Description &
Default<string[]> & {
range: string;
spec: {
values: string[];
"value-names": {
[key: string]: string;
};
};
}
>(a: A) {
return new List({
type: "list" as const,
subtype: "enum" as const,
...a,
});
}
static obj<
A extends Description &
Default<Record<string, unknown>[]> & {