@flowscripter/dynamic-cli-framework
    Preparing search index...

    Interface ConfigFormat

    Defines the on-disk syntax of the CLI configuration file.

    The built-in implementation is JSON (the default). YAML and TOML implementations are available from the @flowscripter/dynamic-cli-framework/yaml and @flowscripter/dynamic-cli-framework/toml entry points. Third party formats can be supplied by implementing this interface.

    interface ConfigFormat {
        fileExtension: string;
        apply(handle: unknown, changes: ConfigData): string;
        parse(text: string): { data: ConfigData; handle: unknown };
        serialize(data: ConfigData): string;
    }
    Index
    fileExtension: string

    The extension (without the leading dot) used for the default configuration file name, e.g. json.