feat: New actions

This commit is contained in:
BluJ
2023-05-03 13:15:51 -06:00
parent f4c93438f8
commit a71b2f9f82
5 changed files with 57 additions and 24 deletions

View File

@@ -627,12 +627,15 @@ export class Value<Type, WD> {
static filteredUnion<WrapperData = never>(
getDisabledFn: LazyBuild<WrapperData, string[]>,
) {
return <Type extends Record<string, any>>(
return <
Required extends RequiredDefault<string>,
Type extends Record<string, any>,
>(
a: {
name: string
description?: string | null
warning?: string | null
required: RequiredDefault<string>
required: Required
default?: string | null
},
aVariants: Variants<Type, WrapperData> | Variants<Type, never>,