mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-04-01 21:13:11 +00:00
feat: Add effect of smtp & withWrapperData
This commit is contained in:
@@ -114,6 +114,9 @@ export class Config<Type extends Record<string, any>, WD> {
|
||||
},
|
||||
}
|
||||
}
|
||||
withWrapperData<NewWrapperData extends WD>() {
|
||||
return this as any as Config<Type, NewWrapperData>
|
||||
}
|
||||
}
|
||||
|
||||
export function topConfig<WrapperData>() {
|
||||
|
||||
@@ -626,4 +626,8 @@ export class Value<Type, WD> {
|
||||
a.validator,
|
||||
)
|
||||
}
|
||||
|
||||
withWrapperData<NewWrapperData extends WD>() {
|
||||
return this as any as Value<Type, NewWrapperData>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,4 +103,8 @@ export class Variants<Type, WD> {
|
||||
return variants
|
||||
}, validator)
|
||||
}
|
||||
|
||||
withWrapperData<NewWrapperData extends WD>() {
|
||||
return this as any as Variants<Type, NewWrapperData>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user