@@ -126,8 +126,8 @@ export interface EXPERIMENTAL_RouterOptions_Base extends PathParserOptions {
126126 * }
127127 * ```
128128 */
129-
130129 scrollBehavior ?: RouterScrollBehavior
130+
131131 /**
132132 * Custom implementation to parse a query. See its counterpart,
133133 * {@link EXPERIMENTAL_RouterOptions_Base.stringifyQuery}.
@@ -145,26 +145,27 @@ export interface EXPERIMENTAL_RouterOptions_Base extends PathParserOptions {
145145 * })
146146 * ```
147147 */
148-
149148 parseQuery ?: typeof originalParseQuery
149+
150150 /**
151151 * 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.
153153 */
154154
155155 stringifyQuery ?: typeof originalStringifyQuery
156+
156157 /**
157158 * Default class applied to active {@link RouterLink}. If none is provided,
158159 * `router-link-active` will be applied.
159160 */
160-
161161 linkActiveClass ?: string
162+
162163 /**
163164 * Default class applied to exact active {@link RouterLink}. If none is provided,
164165 * `router-link-exact-active` will be applied.
165166 */
166-
167167 linkExactActiveClass ?: string
168+
168169 /**
169170 * Default class applied to non-active {@link RouterLink}. If none is provided,
170171 * `router-link-inactive` will be applied.
@@ -191,7 +192,7 @@ export interface EXPERIMENTAL_RouterOptions<TRouteRecordRaw, TRouteRecord>
191192}
192193
193194/**
194- * Router instance.
195+ * Router base instance.
195196 * @experimental This version is not stable, it's meant to replace {@link Router} in the future.
196197 */
197198export interface EXPERIMENTAL_Router_Base < TRouteRecordRaw , TRouteRecord > {
@@ -1161,7 +1162,6 @@ export function experimental_createRouter(
11611162 }
11621163
11631164 // Initialization and Errors
1164-
11651165 let readyHandlers = useCallbacks < _OnReadyCallback > ( )
11661166 let errorListeners = useCallbacks < _ErrorListener > ( )
11671167 let ready : boolean
@@ -1206,9 +1206,9 @@ export function experimental_createRouter(
12061206 * only be called once, otherwise does nothing.
12071207 * @param err - optional error
12081208 */
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 {
12121212 if ( ! ready ) {
12131213 // still not ready if an error happened
12141214 ready = ! err
0 commit comments