Skip to content

Commit 1834fd8

Browse files
authored
fix: Hydrate types (#51)
1 parent bcbc031 commit 1834fd8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/hydrate.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { ComponentChild } from 'preact';
1+
import { hydrate } from 'preact';
22

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

src/hydrate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { render, hydrate as hydrativeRender } from 'preact';
22

33
let initialized;
44

5-
/** @type {typeof render} */
5+
/** @type {typeof hydrativeRender} */
66
export default function hydrate(jsx, parent) {
77
if (typeof window === 'undefined') return;
88
let isodata = document.querySelector('script[type=isodata]');

0 commit comments

Comments
 (0)