1
0
mirror of synced 2025-12-23 03:44:00 -05:00
Files
docs/javascripts/scroll-anchoring.d.ts
Mike Surowiec 5396f5f9e4 React: All landing pages (#19943)
* default all remaining landing pages to react, update tests
2021-06-17 10:04:53 -07:00

9 lines
333 B
TypeScript

declare module 'scroll-anchoring' {
export function findAnchorNode(document: Document): Node | undefined
export function preserveAnchorNodePosition<T>(
document: Document,
callback: () => Promise<T> | T
): Promise<T>
export function preservePosition<T>(anchorNode: Node, callback: () => Promise<T> | T): Promise<T>
}