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

8 lines
422 B
Plaintext

import Cookies from 'js-cookie';
export type State = string | undefined;
export interface Options extends Cookies.CookieAttributes {
defaultValue?: State | (() => State);
}
declare function useCookieState(cookieKey: string, options?: Options): readonly [State, (this: unknown, newValue: State | ((prevState: State) => State), newOptions?: Cookies.CookieAttributes | undefined) => void];
export default useCookieState;