interface CommercetoolsHooks {
    onAfterResponse?: ((response) => void);
    onBeforeRequest?: ((requestConfig) => CommercetoolsRequest | Promise<CommercetoolsRequest>);
}

Hierarchy

Properties

onAfterResponse?: ((response) => void)

Type declaration

    • (response): void
    • If passed in, will be called once a request has been made and the response received (or error thrown).

      Parameters

      Returns void

onBeforeRequest?: ((requestConfig) => CommercetoolsRequest | Promise<CommercetoolsRequest>)

Type declaration

Generated using TypeDoc