From d60fef7db3610b6d59c0aaad1a34a86de52f9952 Mon Sep 17 00:00:00 2001 From: streamich Date: Fri, 15 Mar 2019 15:43:55 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20allow=20every=20promise?= =?UTF-8?q?=20in=20usePromise()=20hook=20have=20own=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/usePromise.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usePromise.ts b/src/usePromise.ts index 2725605744..f1f813155e 100644 --- a/src/usePromise.ts +++ b/src/usePromise.ts @@ -1,7 +1,7 @@ import {useCallback} from 'react'; import useRefMounted from './useRefMounted'; -export type UsePromise = () => (promise: Promise) => Promise; +export type UsePromise = () => (promise: Promise) => Promise; const usePromise: UsePromise = () => { const refMounted = useRefMounted();