UNPKG
ts-convict
Version:
latest (1.1.0)
1.1.0
1.0.4
1.0.3
1.0.2
0.2.2
Model style decorators for your convict config.
github.com/kferrone/ts-convict
kferrone/ts-convict
ts-convict
/
dist
/
decorators.d.ts
5 lines
(4 loc)
•
294 B
TypeScript
View Raw
1
2
3
4
5
import
{
SchemaObj
}
from
"convict"
;
import
{
ConfigOptions
}
from
"./interfaces"
;
export
declare
function
Config
<T>(
opts
?:
ConfigOptions
):
(
constructor
:
new
() => T
) =>
void
;
export
declare
function
Property
(
schemaObj
:
SchemaObj
| (
new
() => {})
):
(
target
:
any
,
propertyName
:
string
) =>
void
;