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

11 lines
384 B
Plaintext

export default function useHistoryTravel<T>(initialValue?: T, maxLength?: number): {
value: T | undefined;
backLength: number;
forwardLength: number;
setValue: (this: unknown, val: T) => void;
go: (this: unknown, step: number) => void;
back: (this: unknown) => void;
forward: (this: unknown) => void;
reset: (this: unknown, ...args: any[]) => void;
};