Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ConfigValidator

Index

Constructors

Methods

Constructors

constructor

Methods

validate

  • validate(inputConfig: string | Schema, defaultConfig?: Record<string, unknown>): any
  • Validate the input config.

    throws

    On validation errors

    Parameters

    • inputConfig: string | Schema

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

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

      The default config options.

    Returns any

    The input config with defaults applied.

Static fromSchemaFile

Generated using TypeDoc