Skip to main content
Go to Latest
class config.Value
extends IBuilder<A>
import { config } from "https://deno.land/x/embassyd_sdk@v0.334.0-alpha4/mod.ts";
const { Value } = config;

Type Parameters

A extends ValueSpec

Static Methods

boolean<A extends Description & Default<boolean>>(a: A)
enum<A extends Description & Default<string> & { values: readonly string[] | string[]; value-names: Record<string, string>; }>(a: A)
list<A extends List<ValueSpecList>>(a: A)
number<A extends
& Description
& NullableDefault<number>
& Nullable
& NumberSpec
>
(a: A)
object<A extends { name: string; description: string | null; warning: string | null; default: null | { [k: string]: unknown; }; display-as: null | string; unique-by: null | string; spec: Config<ConfigSpec>; value-names: Record<string, string>; }>(a: A)
string<A extends
& Description
& NullableDefault<DefaultString>
& Nullable
& StringSpec
>
(a: A)
union<A extends Description & Default<string> & { tag: { id: B; name: string; description: string | null; warning: string | null; variant-names: { [key: string]: string; }; }; variants: Variants<{ [key: string]: ConfigSpec; }>; display-as: string | null; unique-by: UniqueBy; }, B extends string>(a: A)