Fix prethen value
This commit is contained in:
parent
b0cce82e74
commit
5617d0f591
1 changed files with 1 additions and 2 deletions
3
lib/index.d.ts
vendored
3
lib/index.d.ts
vendored
|
@ -13,7 +13,7 @@ interface CancelablePromise<T> extends Promise<T> {
|
|||
|
||||
interface OrderPromise<C, T> extends CancelablePromise<T> {
|
||||
channel: C;
|
||||
prethen(onFulfilled: (value: C) => void): void;
|
||||
prethen(onFulfilled: (value: T) => void): void;
|
||||
}
|
||||
type UnwrapOrderPromise<A> = A extends OrderPromise<any, infer T> ? T : never
|
||||
|
||||
|
@ -45,7 +45,6 @@ export interface WriteChannel<T> {
|
|||
|
||||
export type ReadWriteChannel<T> = ReadChannel<T> & WriteChannel<T>;
|
||||
|
||||
|
||||
import { Functionalify, Typify } from './functional';
|
||||
// Ideally these would not be channels of `any`, but I couldn't find a way to pass on the generic arguments
|
||||
type FunctionalInterface =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue