remove list of unions

This commit is contained in:
Matt Hill
2023-03-28 01:02:14 -06:00
parent 53ef640ed7
commit 60a6a27682
5 changed files with 48 additions and 106 deletions

View File

@@ -7,7 +7,6 @@ import {
ValueSpec,
ValueSpecList,
ValueSpecNumber,
ValueSpecOf,
ValueSpecString,
} from "../config-types";
import { guardAll } from "../../util";
@@ -146,8 +145,10 @@ export class Value<A extends ValueSpec> extends IBuilder<A> {
name: string;
description: string | null;
warning: string | null;
selectKey: string;
variants: Variants<{ [key: string]: { name: string; spec: InputSpec } }>;
default: string;
nullable: boolean;
default: string | null;
}
>(a: A) {
const { variants: previousVariants, ...rest } = a;