Skip to content

Commit

Permalink
Fix incorrect type for AsyncComponent.Preload
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonmade committed May 3, 2024
1 parent dc21ac5 commit c402a9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nice-rings-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@quilted/react-async": patch
---

Fix incorrect type for AsyncComponent.Preload
2 changes: 1 addition & 1 deletion packages/react-async/source/AsyncComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export class AsyncComponent<Props> extends Component<
> & {name?: string} = {},
): ComponentType<Props> & {
readonly module: AsyncModule<{default: ComponentType<Props>}>;
readonly Preload: ComponentType<{}>;
load(): Promise<ComponentType<Props>>;
Preload(): ComponentType<{}>;
} {
const module =
moduleOrImport instanceof AsyncModule
Expand Down

0 comments on commit c402a9a

Please sign in to comment.