mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-04-01 21:13:11 +00:00
chore: Add the rest of the config builder test
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
import { BuilderExtract, IBuilder } from "./builder";
|
||||
import { Config } from "./config";
|
||||
import {
|
||||
InputSpec,
|
||||
ListValueSpecNumber,
|
||||
ListValueSpecString,
|
||||
UniqueBy,
|
||||
ValueSpecList,
|
||||
} from "../config-types";
|
||||
import { InputSpec, ListValueSpecNumber, ListValueSpecString, UniqueBy, ValueSpecList } from "../config-types";
|
||||
import { guardAll } from "../../util";
|
||||
/**
|
||||
* Used as a subtype of Value.list
|
||||
@@ -102,7 +96,8 @@ export class List<A extends ValueSpecList> extends IBuilder<A> {
|
||||
name: string;
|
||||
description?: string | null;
|
||||
warning?: string | null;
|
||||
default: Record<string, unknown>[];
|
||||
/** Default [] */
|
||||
default?: Record<string, unknown>[];
|
||||
/** Default = "(\*,\*)" */
|
||||
range?: string;
|
||||
},
|
||||
@@ -123,6 +118,7 @@ export class List<A extends ValueSpecList> extends IBuilder<A> {
|
||||
};
|
||||
const value = {
|
||||
spec,
|
||||
default: [],
|
||||
...a,
|
||||
};
|
||||
return new List({
|
||||
|
||||
Reference in New Issue
Block a user