* Enhanced global emitter with typed 'no match' event
| 100 | * Enhanced global emitter with typed 'no match' event |
| 101 | */ |
| 102 | interface NockEmitter extends NodeJS.EventEmitter { |
| 103 | on(event: 'no match', listener: (req: Request) => void): this |
| 104 | on( |
| 105 | event: 'no match', |
| 106 | listener: ( |
| 107 | req: Request, |
| 108 | interceptorResults?: InterceptorMatchResult[], |
| 109 | ) => void, |
| 110 | ): this |
| 111 | once(event: 'no match', listener: (req: Request) => void): this |
| 112 | once( |
| 113 | event: 'no match', |
| 114 | listener: ( |
| 115 | req: Request, |
| 116 | interceptorResults?: InterceptorMatchResult[], |
| 117 | ) => void, |
| 118 | ): this |
| 119 | emit( |
| 120 | event: 'no match', |
| 121 | req: Request, |
| 122 | interceptorResults?: InterceptorMatchResult[], |
| 123 | ): boolean |
| 124 | } |
| 125 | |
| 126 | interface Scope extends NodeJS.EventEmitter { |
| 127 | get: InterceptFunction |
no outgoing calls
no test coverage detected
searching dependent graphs…