Skip to content

Commit

Permalink
fix: correct type exports
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku authored and barmac committed Mar 12, 2024
1 parent 4bf805f commit 07e3e0b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
export { html } from 'htm/preact';

export * from 'preact';
export * from 'preact/hooks';
export {
useState,
useRef,
useCallback,
useContext,
useEffect,
useDebugValue,
useErrorBoundary,
useLayoutEffect,
useId,
useMemo,
useReducer,
useImperativeHandle
} from 'preact/hooks';
15 changes: 14 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
export { html } from 'htm/preact';

export * from 'preact';
export * from 'preact/hooks';
export {
useState,
useRef,
useCallback,
useContext,
useEffect,
useDebugValue,
useErrorBoundary,
useLayoutEffect,
useId,
useMemo,
useReducer,
useImperativeHandle
} from 'preact/hooks';

0 comments on commit 07e3e0b

Please sign in to comment.