| 43 | }; |
| 44 | |
| 45 | interface HookInterceptor<T, R, AdditionalOptions = UnsetAdditionalOptions> { |
| 46 | name?: string; |
| 47 | tap?: (tap: FullTap & IfSet<AdditionalOptions>) => void; |
| 48 | call?: (...args: any[]) => void; |
| 49 | loop?: (...args: any[]) => void; |
| 50 | error?: (err: Error) => void; |
| 51 | result?: (result: R) => void; |
| 52 | done?: () => void; |
| 53 | register?: ( |
| 54 | tap: FullTap & IfSet<AdditionalOptions> |
| 55 | ) => FullTap & IfSet<AdditionalOptions>; |
| 56 | } |
| 57 | |
| 58 | type ArgumentNames<T extends any[]> = FixedSizeArray<T["length"], string>; |
| 59 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…