Hierarchy

  • ConfigValidator

Constructors

Methods

Constructors

  • Construct a validator of YAML files.

    Parameters

    • schema: any

      The JSON schema file object.

    Returns ConfigValidator

Methods

  • Validate the input config.

    Returns

    The input config with defaults applied.

    Throws

    On validation errors

    Parameters

    • inputConfig: any

      The input config file path (string) or parsed config (Object).

    • defaultConfig: Record<string, unknown> = {}

      The default config options.

    Returns any

  • Parameters

    • filename: string

    Returns ConfigValidator

Generated using TypeDoc