site/node_modules/micromorph/spa.d.ts

8 lines
267 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
interface Options {
beforeDiff?: (newDocument: Document) => void|Promise<void>;
afterDiff?: () => void|Promise<void>;
include?: string | ((element: HTMLAnchorElement) => boolean);
scrollToTop?: boolean;
}
export default function listen(opts?: Options): void;