chore: prettier."

This commit is contained in:
BluJ
2023-03-31 09:38:36 -06:00
parent ce9c2a0db2
commit f3f3d8c10c
9 changed files with 292 additions and 80 deletions

View File

@@ -1,6 +1,12 @@
import { BuilderExtract, IBuilder } from "./builder";
import { Config } from "./config";
import { InputSpec, ListValueSpecString, UniqueBy, ValueSpecList } from "../config-types";
import {
InputSpec,
ListValueSpecNumber,
ListValueSpecString,
UniqueBy,
ValueSpecList,
} from "../config-types";
import { guardAll } from "../../util";
export class List<A extends ValueSpecList> extends IBuilder<A> {

View File

@@ -36,7 +36,12 @@ import { DefaultString } from "../config-types";
```
*/
export class Value<A extends ValueSpec> extends IBuilder<A> {
static boolean(a: { name: string; description?: string | null; warning?: string | null; default?: boolean | null }) {
static boolean(a: {
name: string;
description?: string | null;
warning?: string | null;
default?: boolean | null;
}) {
return new Value({
description: null,
warning: null,
@@ -162,7 +167,9 @@ export class Value<A extends ValueSpec> extends IBuilder<A> {
spec,
});
}
static union<V extends Variants<{ [key: string]: { name: string; spec: InputSpec } }>>(
static union<
V extends Variants<{ [key: string]: { name: string; spec: InputSpec } }>
>(
a: {
name: string;
description?: string | null;

View File

@@ -67,7 +67,10 @@ export class Variants<
static empty() {
return Variants.of({});
}
static withVariant<K extends string, B extends InputSpec>(key: K, value: Config<B>) {
static withVariant<K extends string, B extends InputSpec>(
key: K,
value: Config<B>
) {
return Variants.empty().withVariant(key, value);
}