Update checked-in dependencies
This commit is contained in:
parent
c9f0d30a86
commit
95d52b7807
647 changed files with 498055 additions and 3880 deletions
24
node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-5b72232f.d.ts
generated
vendored
Normal file
24
node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-5b72232f.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { EventMap, Listener } from 'strict-event-emitter';
|
||||
import { h as Interceptor, E as ExtractEventNames } from './Interceptor-bc5a9d8e.js';
|
||||
|
||||
interface BatchInterceptorOptions<InterceptorList extends ReadonlyArray<Interceptor<any>>> {
|
||||
name: string;
|
||||
interceptors: InterceptorList;
|
||||
}
|
||||
type ExtractEventMapType<InterceptorList extends ReadonlyArray<Interceptor<any>>> = InterceptorList extends ReadonlyArray<infer InterceptorType> ? InterceptorType extends Interceptor<infer EventMap> ? EventMap : never : never;
|
||||
/**
|
||||
* A batch interceptor that exposes a single interface
|
||||
* to apply and operate with multiple interceptors at once.
|
||||
*/
|
||||
declare class BatchInterceptor<InterceptorList extends ReadonlyArray<Interceptor<any>>, Events extends EventMap = ExtractEventMapType<InterceptorList>> extends Interceptor<Events> {
|
||||
static symbol: symbol;
|
||||
private interceptors;
|
||||
constructor(options: BatchInterceptorOptions<InterceptorList>);
|
||||
protected setup(): void;
|
||||
on<EventName extends ExtractEventNames<Events>>(event: EventName, listener: Listener<Events[EventName]>): this;
|
||||
once<EventName extends ExtractEventNames<Events>>(event: EventName, listener: Listener<Events[EventName]>): this;
|
||||
off<EventName extends ExtractEventNames<Events>>(event: EventName, listener: Listener<Events[EventName]>): this;
|
||||
removeAllListeners<EventName extends ExtractEventNames<Events>>(event?: EventName | undefined): this;
|
||||
}
|
||||
|
||||
export { BatchInterceptorOptions as B, ExtractEventMapType as E, BatchInterceptor as a };
|
||||
Loading…
Add table
Add a link
Reference in a new issue