• 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.