mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 13:48:13 +00:00
chore(nuxt): use Exclude rather than Omit
This commit is contained in:
parent
b5981f6840
commit
3fc4231d33
@ -98,18 +98,9 @@ export function defineNuxtLink (options: NuxtLinkOptions) {
|
||||
}
|
||||
}
|
||||
|
||||
function resolveTrailingSlashBehavior (
|
||||
to: string,
|
||||
resolve: Router['resolve']
|
||||
): string
|
||||
function resolveTrailingSlashBehavior (
|
||||
to: RouteLocationRaw,
|
||||
resolve: Router['resolve']
|
||||
): Omit<RouteLocationRaw, string>
|
||||
function resolveTrailingSlashBehavior (
|
||||
to: RouteLocationRaw,
|
||||
resolve: Router['resolve']
|
||||
): RouteLocationRaw | RouteLocation {
|
||||
function resolveTrailingSlashBehavior (to: string, resolve: Router['resolve']): string
|
||||
function resolveTrailingSlashBehavior (to: RouteLocationRaw, resolve: Router['resolve']): Exclude<RouteLocationRaw, string>
|
||||
function resolveTrailingSlashBehavior (to: RouteLocationRaw, resolve: Router['resolve']): RouteLocationRaw | RouteLocation {
|
||||
if (!to || (options.trailingSlash !== 'append' && options.trailingSlash !== 'remove')) {
|
||||
return to
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user