@@ -126,8 +126,8 @@ export interface EXPERIMENTAL_RouterOptions_Base extends PathParserOptions {
126
126
* }
127
127
* ```
128
128
*/
129
-
130
129
scrollBehavior ?: RouterScrollBehavior
130
+
131
131
/**
132
132
* Custom implementation to parse a query. See its counterpart,
133
133
* {@link EXPERIMENTAL_RouterOptions_Base.stringifyQuery}.
@@ -145,26 +145,27 @@ export interface EXPERIMENTAL_RouterOptions_Base extends PathParserOptions {
145
145
* })
146
146
* ```
147
147
*/
148
-
149
148
parseQuery ?: typeof originalParseQuery
149
+
150
150
/**
151
151
* Custom implementation to stringify a query object. Should not prepend a leading `?`.
152
- * {@link EXPERIMENTAL_RouterOptions_Base.parseQuery | parseQuery} counterpart to handle query parsing.
152
+ * {@link parseQuery} counterpart to handle query parsing.
153
153
*/
154
154
155
155
stringifyQuery ?: typeof originalStringifyQuery
156
+
156
157
/**
157
158
* Default class applied to active {@link RouterLink}. If none is provided,
158
159
* `router-link-active` will be applied.
159
160
*/
160
-
161
161
linkActiveClass ?: string
162
+
162
163
/**
163
164
* Default class applied to exact active {@link RouterLink}. If none is provided,
164
165
* `router-link-exact-active` will be applied.
165
166
*/
166
-
167
167
linkExactActiveClass ?: string
168
+
168
169
/**
169
170
* Default class applied to non-active {@link RouterLink}. If none is provided,
170
171
* `router-link-inactive` will be applied.
@@ -191,7 +192,7 @@ export interface EXPERIMENTAL_RouterOptions<TRouteRecordRaw, TRouteRecord>
191
192
}
192
193
193
194
/**
194
- * Router instance.
195
+ * Router base instance.
195
196
* @experimental This version is not stable, it's meant to replace {@link Router} in the future.
196
197
*/
197
198
export interface EXPERIMENTAL_Router_Base < TRouteRecordRaw , TRouteRecord > {
@@ -1161,7 +1162,6 @@ export function experimental_createRouter(
1161
1162
}
1162
1163
1163
1164
// Initialization and Errors
1164
-
1165
1165
let readyHandlers = useCallbacks < _OnReadyCallback > ( )
1166
1166
let errorListeners = useCallbacks < _ErrorListener > ( )
1167
1167
let ready : boolean
@@ -1206,9 +1206,9 @@ export function experimental_createRouter(
1206
1206
* only be called once, otherwise does nothing.
1207
1207
* @param err - optional error
1208
1208
*/
1209
- function markAsReady < E = any > ( err : E ) : E
1210
- function markAsReady < E = any > ( ) : void
1211
- function markAsReady < E = any > ( err ?: E ) : E | void {
1209
+ function markAsReady < E = unknown > ( err : E ) : E
1210
+ function markAsReady ( ) : void
1211
+ function markAsReady < E = unknown > ( err ?: E ) : E | void {
1212
1212
if ( ! ready ) {
1213
1213
// still not ready if an error happened
1214
1214
ready = ! err
0 commit comments