8000 types(scroll): allow returning a falsy value to prevent scroll · vuejs/vue-router@5118824 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5118824

Browse files
committed
types(scroll): allow returning a falsy value to prevent scroll
Closes #2921
1 parent 039bd8f commit 5118824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/router.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export interface RouterOptions {
7474
to: Route,
7575
from: Route,
7676
savedPosition: Position | void
77-
) => PositionResult | Promise<PositionResult>
77+
) => PositionResult | Promise<PositionResult> | undefined | null
7878< 4285 code class="diff-text syntax-highlighted-line">
}
7979

8080
type RoutePropsFunction = (route: Route) => Object

0 commit comments

Comments
 (0)
0