mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
chore: Fix the required
This commit is contained in:
@@ -640,7 +640,7 @@ export class Value<Type, WD> {
|
||||
},
|
||||
aVariants: Variants<Type, WrapperData> | Variants<Type, never>,
|
||||
) => {
|
||||
return new Value<Type | null | undefined, WrapperData>(
|
||||
return new Value<AsRequired<Type, Required>, WrapperData>(
|
||||
async (options) => ({
|
||||
type: "union" as const,
|
||||
description: null,
|
||||
@@ -651,7 +651,7 @@ export class Value<Type, WD> {
|
||||
disabled: (await getDisabledFn(options)) || [],
|
||||
immutable: false,
|
||||
}),
|
||||
aVariants.validator.optional(),
|
||||
asRequiredParser(aVariants.validator, a),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,3 +59,4 @@ export const smtpConfig = Value.filteredUnion(async ({ effects, utils }) => {
|
||||
},
|
||||
}),
|
||||
)
|
||||
type test = typeof smtpConfig.validator._TYPE
|
||||
|
||||
Reference in New Issue
Block a user