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