@travetto/config
Version:
Configuration support
13 lines (10 loc) • 310 B
text/typescript
import { ConfigData } from '../parser/types.ts';
type OrProm<T> = T | Promise<T>;
type OneOf<T> = T[] | T | undefined;
export type ConfigSpec = { data: ConfigData, priority: number, source: string, detail?: string };
/**
* @concrete
*/
export interface ConfigSource {
get(): OrProm<OneOf<ConfigSpec>>;
}