node-multi-curl
Version:
A performant multi-curl class in Node.js that supports proxies and concurrent requests
11 lines (10 loc) • 422 B
TypeScript
export interface Interceptor<T> {
use(onFulfilled?: (value: T) => T | Promise<T>, onRejected?: (error: any) => any): number;
eject(id: number): void;
}
export declare class InterceptorManager<T> implements Interceptor<T> {
private handlers;
use(onFulfilled?: (value: T) => T | Promise<T>, onRejected?: (error: any) => any): number;
eject(id: number): void;
runInterceptors(value: T): Promise<T>;
}