mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
feat: Add the get const
This commit is contained in:
@@ -54,3 +54,11 @@ export const smtpConfig = Value.union(
|
||||
},
|
||||
}),
|
||||
)
|
||||
|
||||
export function getConst<WrapperData>() {
|
||||
return {
|
||||
get smtp() {
|
||||
return smtpConfig.withWrapperData<WrapperData>()
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user