Skip to content

Commit

Permalink
add {default: React.ComponentType<P>}
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Mar 15, 2018
1 parent 94fc382 commit 3e8c80c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -4,7 +4,7 @@ import * as React from 'react';
* The configuration for an asynchronous component.
*/
export interface Configuration<P> {
resolve: () => Promise<React.ComponentType<P>>;
resolve: () => Promise<React.ComponentType<P> | {default: React.ComponentType<P>}>;
LoadingComponent?: (props: P) => JSX.Element;
ErrorComponent?: (props: P & { error: Error }) => JSX.Element;
name?: string;
Expand Down

0 comments on commit 3e8c80c

Please sign in to comment.