Skip to main content

publicvalidateConfig

Callable

  • validateConfig<T>(value: unknown, schema: Struct<T, unknown>): T

  • Validate a value against a schema.

    @throws

    ConfigError Thrown if the value is invalid.


    Type parameters

    • T

    Parameters

    • value: unknown
    • schema: Struct<T, unknown>

    Returns T