Skip to content

Type alias: AddProtocolAction

Ƭ AddProtocolAction: (requestParameters: RequestParameters, abortController: AbortController) => Promise<GetResourceResponse<any>>

This method type is used to register a protocol handler. Use the abort controller for aborting requests. Return a promise with the relevant resource response.

Type declaration

▸ (requestParameters, abortController): Promise<GetResourceResponse<any>>

Parameters
Name Type
requestParameters RequestParameters
abortController AbortController
Returns

Promise<GetResourceResponse<any>>

Defined in

src/util/config.ts:8