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;