• Create a validator function for a given schema.

    Type Parameters

    • T

    Parameters

    • schema: ISchema

      the schema to validate against

    • Optional logger: ILogger

    Returns ((object, throwOnError?, log?) => object is T)

    a function that validates an object against the schema.

      • (object, throwOnError?, log?): object is T
      • Parameters

        • object: unknown
        • Optional throwOnError: boolean
        • Optional log: ILogger

        Returns object is T

Generated using TypeDoc