@virtualstate/navigation
Version:
Native JavaScript [navigation](https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API) implementation
17 lines • 480 B
JavaScript
export class NavigationCurrentEntryChangeEvent {
type;
from;
navigationType;
constructor(type, init) {
this.type = type;
if (!init) {
throw new TypeError("init required");
}
if (!init.from) {
throw new TypeError("from required");
}
this.from = init.from;
this.navigationType = init.navigationType ?? undefined;
}
}
//# sourceMappingURL=navigation-current-entry-change-event.js.map