diff --git a/index.d.ts b/index.d.ts index 02fd8b4..aac6b3d 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>; LoadingComponent?: (props: P) => JSX.Element; ErrorComponent?: (props: P & { error: Error }) => JSX.Element; name?: string; @@ -40,7 +40,7 @@ export interface Context { * * @param config The configuration to use for the asynchronous component. */ -export function asyncComponent, P>(config: Configuration

): React.ComponentClass

; +export function asyncComponent

(config: Configuration

): React.ComponentType

; /** * Create a context for the asynchronous component resolving module.