1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/components/lib/scroll-anchoring.d.ts
Grace Park 8ba413cabc React Cleanup: Documentation (#20517)
* initial documentation changes

* editing layouts terminology

* update to match other files

* move javascripts to components/lib

* fix: dockerfile

* update based on Mikes updates to the javascripts directory

* update components/README.md

Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
2021-07-27 09:07:18 -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>
}