Skip to content

Commit

Permalink
Add missing onError type for ErrorBoundary
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Mar 12, 2021
1 parent 91bc136 commit 3db3696
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 3db3696

Please sign in to comment.