]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
refactor(types): jsx attrs types
authorEduardo San Martin Morote <posva13@gmail.com>
Sun, 23 Aug 2020 11:01:32 +0000 (13:01 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Sun, 23 Aug 2020 11:01:32 +0000 (13:01 +0200)
src/RouterLink.ts
src/RouterView.ts

index 6fa1a59ebe4f3bbf7812a2a7b89756dc6ac70cc4..68b777862a08b990033ff1381ec6d065449a8b9e 100644 (file)
@@ -7,7 +7,8 @@ import {
   reactive,
   unref,
   VNodeProps,
-  HTMLAttributes,
+  AllowedComponentProps,
+  ComponentCustomProps,
 } from 'vue'
 import { RouteLocationRaw, VueUseOptions, RouteLocation } from './types'
 import { isSameRouteLocationParams, isSameRouteRecord } from './location'
@@ -187,7 +188,10 @@ export const RouterLinkImpl = defineComponent({
 // also to avoid inline import() in generated d.ts files
 export const RouterLink = (RouterLinkImpl as any) as {
   new (): {
-    $props: HTMLAttributes & VNodeProps & RouterLinkProps
+    $props: AllowedComponentProps &
+      ComponentCustomProps &
+      VNodeProps &
+      RouterLinkProps
   }
 }
 
index 0a50a4cfa9df375a2c094a74d0aee22a3c3336eb..f68cc658e14fbea1414220f0bd3c23e12c5c5c86 100644 (file)
@@ -9,7 +9,8 @@ import {
   VNodeProps,
   getCurrentInstance,
   computed,
-  HTMLAttributes,
+  AllowedComponentProps,
+  ComponentCustomProps,
 } from 'vue'
 import { RouteLocationNormalized, RouteLocationNormalizedLoaded } from './types'
 import {
@@ -109,7 +110,10 @@ export const RouterViewImpl = defineComponent({
 // also to avoid inline import() in generated d.ts files
 export const RouterView = (RouterViewImpl as any) as {
   new (): {
-    $props: HTMLAttributes & VNodeProps & RouterViewProps
+    $props: AllowedComponentProps &
+      ComponentCustomProps &
+      VNodeProps &
+      RouterViewProps
   }
 }