diff --git a/src/hydrate.d.ts b/src/hydrate.d.ts index ace9158..593a561 100644 --- a/src/hydrate.d.ts +++ b/src/hydrate.d.ts @@ -1,3 +1,3 @@ -import { ComponentChild } from 'preact'; +import { hydrate } from 'preact'; -export default function hydrate(jsx: ComponentChild, parent?: Element | Document | ShadowRoot | DocumentFragment): void; +export default hydrate; diff --git a/src/hydrate.js b/src/hydrate.js index 68d9375..269bc58 100644 --- a/src/hydrate.js +++ b/src/hydrate.js @@ -2,7 +2,7 @@ import { render, hydrate as hydrativeRender } from 'preact'; let initialized; -/** @type {typeof render} */ +/** @type {typeof hydrativeRender} */ export default function hydrate(jsx, parent) { if (typeof window === 'undefined') return; let isodata = document.querySelector('script[type=isodata]');