UNPKG

nock

Version:

HTTP server mocking and expectations library for Node.js

12 lines (11 loc) • 367 B
import type { Interceptor } from './interceptor.ts'; import { EventEmitter } from 'node:events'; export interface InterceptorMatchResult { interceptor: Interceptor; reasons: string[]; } type EventMap = { 'no match': [req: Request, interceptorResults?: InterceptorMatchResult[]]; }; declare const _default: EventEmitter<EventMap>; export default _default;