diff --git a/types.ts b/types.ts index 76c625c..17f690b 100644 --- a/types.ts +++ b/types.ts @@ -139,6 +139,10 @@ export type ConfigSpec = { export type WithDefault = T & { default: Default; }; +export type WithNullableDefault = T & { + default?: Default; +}; + export type WithDescription = T & { description?: string; @@ -209,11 +213,11 @@ export type ValueSpecAny = | Tag<"boolean", WithDescription>> | Tag< "string", - WithDescription, DefaultString>> + WithDescription, DefaultString>> > | Tag< "number", - WithDescription, number>> + WithDescription, number>> > | Tag< "enum",