mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 12:21:57 +00:00
remove list of unions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user