Skip to content

Commit

Permalink
bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Oct 22, 2024
1 parent 9f557d6 commit a8543dc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"devDependencies": {
"@changesets/cli": "^2.27.8",
"@eslint/js": "^9.12.0",
"@eslint/js": "^9.13.0",
"@types/dom-navigation": "^1.0.4",
"esbuild": "^0.24.0",
"prettier": "^3.3.3",
Expand Down
16 changes: 16 additions & 0 deletions src/dom-view-transisions-level2.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
declare global {
interface PageSwapEvent extends Event {
viewTransition: ViewTransition;
activation: NavigationActivation;
}

type UpdateCallback = undefined | (() => void | Promise<void>);
type StartViewTransitionParameter
= UpdateCallback | { types?: string[]; update: UpdateCallback };

interface Document {
startViewTransition(param: StartViewTransitionParameter): ViewTransition;
}
interface PageRevealEvent extends Event {
viewTransition: ViewTransition;
}
Expand All @@ -12,6 +20,11 @@ declare global {
pagereveal: PageRevealEvent;
}

interface NavigationActivation {
entry: NavigationEntry;
from: NavigationEntry;
navigationType: string;
}
interface AnimationEffect {
target: HTMLElement;
pseudoElement?: string;
Expand All @@ -24,5 +37,8 @@ declare global {
interface Window {
navigation: Navigation;
}
interface Navigation {
activation: NavigationActivation;
}
}
export {};

0 comments on commit a8543dc

Please sign in to comment.