Skip to content

Commit

Permalink
preact-iso: Fix hydrate parent definition (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-cz committed Feb 23, 2021
1 parent 550af42 commit ee75298
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/smart-ways-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'preact-iso': patch
---

Fix hydrate parent definition
2 changes: 1 addition & 1 deletion packages/preact-iso/hydrate.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { ComponentChild, VNode } from 'preact';

export default function hydrate(jsx: ComponentChild, parent?: VNode): void;
export default function hydrate(jsx: ComponentChild, parent?: Element | Document | ShadowRoot | DocumentFragment): void;

0 comments on commit ee75298

Please sign in to comment.