From 5617d0f591431071c89a1176de5b15b15e4a742b Mon Sep 17 00:00:00 2001 From: Paul Grau Date: Sun, 18 Jul 2021 15:07:16 +0900 Subject: [PATCH] Fix prethen value --- lib/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 968ff80..e0d54b2 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -13,7 +13,7 @@ interface CancelablePromise extends Promise { interface OrderPromise extends CancelablePromise { channel: C; - prethen(onFulfilled: (value: C) => void): void; + prethen(onFulfilled: (value: T) => void): void; } type UnwrapOrderPromise = A extends OrderPromise ? T : never @@ -45,7 +45,6 @@ export interface WriteChannel { export type ReadWriteChannel = ReadChannel & WriteChannel; - 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 =