diff --git a/lib/config/builder/list.ts b/lib/config/builder/list.ts index 8b1326f..b398a48 100644 --- a/lib/config/builder/list.ts +++ b/lib/config/builder/list.ts @@ -1,6 +1,12 @@ 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 diff --git a/lib/config/config-types.ts b/lib/config/config-types.ts index 1103f34..cd7ea70 100644 --- a/lib/config/config-types.ts +++ b/lib/config/config-types.ts @@ -111,7 +111,8 @@ export type ListValueSpecOf = T extends "string" /** represents a spec for a list */ export type ValueSpecList = ValueSpecListOf; -export interface ValueSpecListOf extends WithStandalone { +export interface ValueSpecListOf + extends WithStandalone { type: "list"; spec: ListValueSpecOf; range: string; // '[0,1]' (inclusive) OR '[0,*)' (right unbounded), normal math rules @@ -127,7 +128,10 @@ export interface ValueSpecListOf extends WithStanda } // sometimes the type checker needs just a little bit of help -export function isValueSpecListOf(t: ValueSpecList, s: S): t is ValueSpecListOf { +export function isValueSpecListOf( + t: ValueSpecList, + s: S +): t is ValueSpecListOf { return t.spec.type === s; } diff --git a/package-lock.json b/package-lock.json index 0729941..2d24ab9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "start-sdk", - "version": "0.4.0-lib0.beta7", + "version": "0.4.0-lib0.beta8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "start-sdk", - "version": "0.4.0-lib0.beta7", + "version": "0.4.0-lib0.beta8", "license": "MIT", "dependencies": { "@iarna/toml": "^2.2.5", diff --git a/package.json b/package.json index 44d2528..5faaa2e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "start-sdk", - "version": "0.4.0-lib0.beta7", + "version": "0.4.0-lib0.beta8", "description": "For making the patterns that are wanted in making services for the startOS.", "main": "./lib/index.js", "types": "./lib/index.d.ts",