Part of the alepha package. Import from alepha/api/parameters.
npm install alepha
Provides versioned configuration management for Alepha applications.
Features:
$config primitive 1import { Alepha } from "alepha"; 2import { AlephaApiParameters } from "alepha/api/parameters"; 3 4const alepha = Alepha.create(); 5alepha.with(AlephaApiParameters); 6 7// Then use $config in your services: 8class AppConfig { 9 features = $config({10 name: "app.features.flags",11 schema: t.object({12 enableBeta: t.boolean(),13 maxUploadSize: t.number()14 }),15 default: { enableBeta: false, maxUploadSize: 10485760 }16 });17}