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

15 lines
374 B
Plaintext

interface EventTarget<U> {
target: {
value: U;
};
}
export interface Options<T, U> {
initialValue?: T;
transformer?: (value: U) => T;
}
declare function useEventTarget<T, U = T>(options?: Options<T, U>): readonly [T | undefined, {
readonly onChange: (e: EventTarget<U>) => void;
readonly reset: () => void;
}];
export default useEventTarget;