From 3e8c80c272b636ea9a7af4883f6bc3f3808ed322 Mon Sep 17 00:00:00 2001 From: JounQin Date: Thu, 15 Mar 2018 15:52:46 +0800 Subject: [PATCH] add {default: React.ComponentType

} --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index aac6b3d..7416b49 100644 --- a/index.d.ts +++ b/index.d.ts @@ -4,7 +4,7 @@ import * as React from 'react'; * The configuration for an asynchronous component. */ export interface Configuration

{ - resolve: () => Promise>; + resolve: () => Promise | {default: React.ComponentType

}>; LoadingComponent?: (props: P) => JSX.Element; ErrorComponent?: (props: P & { error: Error }) => JSX.Element; name?: string;