Interface PerfsAddon

Hierarchy

  • PerfsAddon

Properties

Properties

perfs: (<T, C, R>(this: C & WretchResponseChain<T, C, R>, cb?: ((timing: any) => void)) => PerfsAddon)

Type declaration

    • <T, C, R>(this: C & WretchResponseChain<T, C, R>, cb?: ((timing: any) => void)): PerfsAddon
    • Performs a callback on the API performance timings of the request.

      Warning: Still experimental on browsers and node.js

      Type Parameters

      Parameters

      • this: C & WretchResponseChain<T, C, R>
      • Optional cb: ((timing: any) => void)
          • (timing: any): void
          • Parameters

            • timing: any

            Returns void

      Returns PerfsAddon

Generated using TypeDoc