( this: unknown, context: InvokeContext | undefined, fn: FN, ...args: Parameters<FN> )
| 144 | |
| 145 | /** Call a function with the given InvokeContext and given arguments. */ |
| 146 | export function invoke<FN extends (...args: any[]) => any>( |
| 147 | this: unknown, |
| 148 | context: InvokeContext | undefined, |
| 149 | fn: FN, |
| 150 | ...args: Parameters<FN> |
| 151 | ): ReturnType<FN> { |
| 152 | return invokeApply.call(this, context, fn, args); |
| 153 | } |
| 154 | |
| 155 | /** Call a function with the given InvokeContext and array of arguments. */ |
| 156 | export function invokeApply<FN extends (...args: any) => any>( |
no outgoing calls
no test coverage detected
searching dependent graphs…