MCPcopy
hub / github.com/Ajaxy/telegram-tt / IntersectionController

Interface IntersectionController

src/hooks/useIntersectionObserver.ts:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16export type ObserveFn = (target: HTMLElement, targetCallback?: TargetCallback) => ObserveCleanup;
17
18interface IntersectionController {
19 observer: IntersectionObserver;
20 addCallback: (element: HTMLElement, callback: TargetCallback) => void;
21 removeCallback: (element: HTMLElement, callback: TargetCallback) => void;
22 destroy: NoneToVoidFunction;
23}
24
25interface Response {
26 observe: ObserveFn;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected