Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit 2126ff1

Browse files
authored
export Setter (#156)
1 parent 0409dec commit 2126ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/use-global.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export type GlobalTuple<GS> = [
66
(newGlobalState: NewGlobalState<GS>, callback?: Callback<GS>) => Promise<GS>,
77
];
88

9-
type Setter<G extends {}, P extends keyof G> =
9+
export type Setter<G extends {}, P extends keyof G> =
1010
(newValue: G[P], callback?: Callback<G>) => Promise<G>;
1111

1212
export type StateTuple<G extends {}, P extends keyof G> = [

0 commit comments

Comments
 (0)