Files
NapCatQQ/.pnpm-store/v3/files/36/ed6fe8d67241d08a58def7159a4fbc771e8e2c88027eab0e461203993fc00f9938fb32d035c4589069030aed93e6c49326ae29f3ad833c9d42e109692e5ee4
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

10 lines
382 B
Plaintext

import type { Dispatch, SetStateAction } from 'react';
type GetStateAction<S> = () => S;
declare function useGetState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>, GetStateAction<S>];
declare function useGetState<S = undefined>(): [
S | undefined,
Dispatch<SetStateAction<S | undefined>>,
GetStateAction<S | undefined>
];
export default useGetState;