From c6bc739e23d2e6e78c9c05b6ffc47c477fad8767 Mon Sep 17 00:00:00 2001 From: Neale Upstone Date: Fri, 27 Dec 2019 21:14:18 +0000 Subject: [PATCH] Export AsyncConstructor So that Typescript can generate type declarations fixes #233 --- packages/react-async/src/Async.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-async/src/Async.tsx b/packages/react-async/src/Async.tsx index 340822c6..104fa50d 100644 --- a/packages/react-async/src/Async.tsx +++ b/packages/react-async/src/Async.tsx @@ -54,7 +54,7 @@ type GenericAsync = typeof Async & { Settled(props: SettledProps): JSX.Element } -type AsyncConstructor = React.ComponentClass> & { +export type AsyncConstructor = React.ComponentClass> & { Initial: React.FC> Pending: React.FC> Loading: React.FC>