| 69 | } |
| 70 | |
| 71 | export interface PromiseWithResolvers<T> { |
| 72 | promise: Promise<T> |
| 73 | resolve: (value: T | PromiseLike<T>) => void |
| 74 | reject: (reason?: any) => void |
| 75 | } |
| 76 | export function promiseWithResolvers<T>(): PromiseWithResolvers<T> { |
| 77 | let resolve: any |
| 78 | let reject: any |
nothing calls this directly
no outgoing calls
no test coverage detected