Skip to content

Commit

Permalink
Merge pull request #64 from absurdprofit/development
Browse files Browse the repository at this point in the history
Update dom-navigation types
  • Loading branch information
absurdprofit authored Sep 4, 2024
2 parents deacfd4 + 1272819 commit 2be0723
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
11 changes: 6 additions & 5 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 @@ -31,7 +31,7 @@
},
"homepage": "https://github.com/nxtexe/react-motion-router#readme",
"devDependencies": {
"@types/dom-navigation": "^1.0.3",
"@types/dom-navigation": "^1.0.4",
"lerna": "^8.1.5",
"ts-node": "^10.9.2",
"typescript": "^5.5.2"
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ export interface LoadNavigationTransition extends Omit<NavigationTransition, "na
declare global {
interface NavigateEvent extends Event {
commit?(): void; // not in spec yet, see https://github.com/WICG/navigation-api/issues/66
readonly hasUAVisualTransition: boolean; // not in definitely typed yet, see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/70324
}
}

Expand Down
1 change: 0 additions & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="urlpattern-polyfill" />
/// <reference types="@types/dom-navigation" />
export * from './SharedElement';
export * from './RouterBase';
export * from './ScreenBase';
Expand Down
2 changes: 1 addition & 1 deletion packages/stack/src/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface RouterConfig extends RouterBaseConfig {
disableBrowserRouting?: boolean;
initialPath?: string;
shouldIntercept?(navigateEvent: NavigateEvent): boolean;
onIntercept?(navigateEvent: NavigateEvent): boolean;
onIntercept?(navigateEvent: NavigateEvent): void;
}

export interface RouterProps extends RouterBaseProps<Screen> {
Expand Down
1 change: 0 additions & 1 deletion packages/stack/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="urlpattern-polyfill" />
/// <reference types="@types/dom-navigation" />
import 'web-gesture-events';
export * from './Navigation';
export * from './Screen';
Expand Down

0 comments on commit 2be0723

Please sign in to comment.