Usage
Reading Configs
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.
Basic Usage
To read your configurations, use the readConfigFromFile
function:
The readConfigFromFile
function returns your configuration object with full
type safety based on your schema.
Type Safety
One of TypeConf’s key features is complete type safety. Your IDE will provide full autocomplete and type checking:
Using with Different Frameworks
TypeConf works seamlessly with various frameworks and environments. Check out our framework-specific guides:
Was this page helpful?