UNPKG

@tsed/config

Version:
14 lines (13 loc) 505 B
import { type LoadOptions } from "js-yaml"; import type { ConfigSource, ConfigSourceOnChangeCB } from "../../interfaces/ConfigSource.js"; export interface YamlConfigSourceOptions extends LoadOptions { /** * The path to the JSON file. */ path: string; } export declare class YamlConfigSource implements ConfigSource<YamlConfigSourceOptions> { options: YamlConfigSourceOptions; getAll(): Promise<Record<string, unknown>>; watch(onChange: ConfigSourceOnChangeCB): () => void; }