Skip to content

Commit

Permalink
Merge pull request #421 from preactjs/iso-missing-on-error
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister authored Mar 12, 2021
2 parents f8cae89 + 3db3696 commit 928c7a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hip-peaches-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'preact-iso': patch
---

Add missing types for `onError` prop of `ErrorBoundary` component
2 changes: 1 addition & 1 deletion packages/preact-iso/lazy.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import { ComponentChildren, VNode } from 'preact';

export default function lazy<T>(load: () => Promise<{ default: T } | T>): T;

export function ErrorBoundary(props: { children?: ComponentChildren }): VNode;
export function ErrorBoundary(props: { children?: ComponentChildren; onError?: (error: Error) => void }): VNode;

0 comments on commit 928c7a0

Please sign in to comment.