BREAKING CHANGE: there is already an existing type named `ScrollBehavior`,
so we are renaming our type to avoid any confusions and allow the user
to use both types at the same type (which given what the existing
`ScrollBehavior` type is designed for, will likely happen).
Router,
RouterOptions,
ErrorHandler,
- ScrollBehavior,
+ RouterScrollBehavior,
} from './router'
export {
type Awaitable<T> = T | Promise<T>
-export interface ScrollBehavior {
+/**
+ * Type of the `scrollBehavior` option that can be passed to `createRouter`.
+ */
+export interface RouterScrollBehavior {
/**
* @param to - Route location where we are navigating to
* @param from - Route location where we are navigating from
* }
* ```
*/
- scrollBehavior?: ScrollBehavior
+ scrollBehavior?: RouterScrollBehavior
/**
* Custom implementation to parse a query. See its counterpart,
* {@link RouterOptions.stringifyQuery}.