Skip to content

Commit

Permalink
fix: Hydrate types (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian authored Nov 20, 2024
1 parent bcbc031 commit 1834fd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/hydrate.d.ts
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 1 addition & 1 deletion src/hydrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]');
Expand Down

0 comments on commit 1834fd8

Please sign in to comment.