mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
chore: Add topConfig
This commit is contained in:
@@ -116,3 +116,8 @@ export class Config<Type extends Record<string, any>, WD, ConfigType> {
|
||||
}
|
||||
}
|
||||
}
|
||||
export function topConfig<WrapperData>() {
|
||||
return <Type extends Record<string, any>>(spec: {
|
||||
[K in keyof Type]: Value<Type[K], WrapperData, Type>
|
||||
}) => Config.of<Type, WrapperData, Type>(spec)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user