Skip to content

Commit 7c82487

Browse files
committed
Correct type export
1 parent 1a3a87e commit 7c82487

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export {
4646
export { useCallback } from "./use-callback";
4747
export { useEffect } from "./use-effect";
4848
export { useLayoutEffect } from "./use-layout-effect";
49-
export { useState, StateUpdater } from "./use-state";
49+
export { useState } from "./use-state";
5050
export { useReducer } from "./use-reducer";
5151
export { useMemo } from "./use-memo";
5252
export { useContext } from "./use-context";
@@ -58,3 +58,5 @@ export { State } from "./state";
5858

5959
export type { Ref } from "./use-ref";
6060
export type { Options as ComponentOptions } from "./component";
61+
62+
export type { StateUpdater } from "./use-state";

0 commit comments

Comments
 (0)