Typeconf
Adding types for your configuration.
npm install -g @typeconf/typeconf
model DebuggingConfig {
enableLogging: boolean;
maxRetries: int32;
timeout: duration;
}
model ProjectConfig {
name: string;
availableModes: Array<string>;
pricingMultipliers: Record<float32>;
debugging: DebuggingConfig;
}
Configuration is messy. We have many different formats, YAML, JSON, random ini files, not to mention environment variables. It's hard to track changes and easy to break stuff. So we thought let's add types there! Our tool, Typeconf, allows you to define types for your configuration and read it in your code.
Features
Set configuration using Typescript and never worry about type issues.
Define configuration types using the TypeSpec format with VSCode support.
Read configs from your code into first class types. Currently we support Typescript.