Skip to content

Commit

Permalink
export Ref type
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Feb 21, 2025
1 parent 7303994 commit 17190b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/red-regions-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"haunted": minor
---

export Ref type
1 change: 1 addition & 0 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ export { useRef } from "./use-ref";
export { hook, Hook } from "./hook";
export { BaseScheduler } from "./scheduler";
export { State } from "./state";
export type { Ref } from "./use-ref";
2 changes: 1 addition & 1 deletion src/use-ref.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useMemo } from "./use-memo";

interface Ref<T> {
export interface Ref<T> {
current: T;
}

Expand Down

0 comments on commit 17190b1

Please sign in to comment.