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

5 lines
287 B
Plaintext

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