Skip to content

Commit

Permalink
export types
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Feb 22, 2024
1 parent f4a0fad commit c36ed9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/r18gs/src/use-rgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ interface React18GlobalStore {
value: unknown;
}

type SetterArgType<T> = T | ((prevState: T) => T);
export type SetterArgType<T> = T | ((prevState: T) => T);

export type SetStateAction<T> = (val: SetterArgType<T>) => void;

declare global {
// eslint-disable-next-line no-var -- var required for global declaration.
Expand Down

0 comments on commit c36ed9c

Please sign in to comment.