add hooks API (#132)

This commit is contained in:
yz-yu
2026-04-01 12:00:00 +08:00
committed by GitHub
parent a91399046b
commit 1afc0b7527
5 changed files with 150 additions and 69 deletions

View File

@@ -1,2 +1,2 @@
import { observerParam, listenerHandler } from '../types';
export default function initObservers(o: observerParam): listenerHandler;
import { observerParam, listenerHandler, hooksParam } from '../types';
export default function initObservers(o: observerParam, hooks?: hooksParam): listenerHandler;