* 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>
9 lines
333 B
TypeScript
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>
|
|
}
|