Once you have defined your configuration schema and values, you can read them in your application. TypeConf provides a simple and type-safe way to access your configurations.
To read your configurations, it’s pretty straightforward, use the readConfig
function:
The readConfigFromFile
function returns your configuration object with full
type safety based on your schema.
One of TypeConf’s key features is complete type safety. Your IDE will provide full autocomplete and type checking:
TypeConf works seamlessly with various frameworks and environments. Check out our framework-specific guides:
Once you have defined your configuration schema and values, you can read them in your application. TypeConf provides a simple and type-safe way to access your configurations.
To read your configurations, it’s pretty straightforward, use the readConfig
function:
The readConfigFromFile
function returns your configuration object with full
type safety based on your schema.
One of TypeConf’s key features is complete type safety. Your IDE will provide full autocomplete and type checking:
TypeConf works seamlessly with various frameworks and environments. Check out our framework-specific guides: