@bachman-dev/wanikani-api-types - v1.8.0
    Preparing search index...

    Function validatePayload

    • Perform runtime validation of Payloads.

      Type Parameters

      Parameters

      • type: T

        The URI for the given payload, i.e. a type of POST or PUT request.

      • payload: WKPayloadMap[T]

        The payload object to be validated.

      Returns void

      A TypeError if payload validation fails.