UNPKG

vulpix

Version:

CSP-like channels library

5 lines (4 loc) 289 B
declare type PromiseExecutor<T> = ConstructorParameters<typeof Promise<T>>[0]; declare type PromiseResolve<T> = Parameters<PromiseExecutor<T>>[0]; declare type PromiseReject = Parameters<PromiseExecutor<never>>[1]; export { type PromiseExecutor, type PromiseResolve, type PromiseReject };