UNPKG

@ribajs/router

Version:

Routing extension for Riba.js inspired by Barba.js

18 lines (17 loc) 652 B
export interface PrefetchInstances { [key: string]: Prefetch; } declare class Prefetch { readonly viewId: string; static getInstance(id?: string): Prefetch; protected static instances: PrefetchInstances; constructor(viewId: string); init(autobindLinks?: boolean): false | undefined; deInit(): void; initBinder(el: HTMLAnchorElement, url: string): false | undefined; deInitBinder(el: HTMLAnchorElement, url: string): void; onLinkEnter(url: string, el: HTMLAnchorElement | HTMLUnknownElement, evt: Event): void; url(url: string): void; protected onLinkEnterIntern(evt: Event): void; } export { Prefetch };