Skip to content

Commit

Permalink
fix: to prop type
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jul 22, 2022
1 parent c08501d commit be94fea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/runtime/components/elements/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const props = defineProps({
default: false
},
to: {
type: [String, Object] as PropType<RouteLocationNormalized>,
type: [String, Object] as PropType<string | RouteLocationNormalized>,
default: null
},
target: {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/elements/Link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { RouterLink } from 'vue-router'
const props = defineProps({
...RouterLink.props,
to: {
type: [String, Object] as PropType<RouteLocationNormalized>,
type: [String, Object] as PropType<string | RouteLocationNormalized>,
default: null
},
inactiveClass: {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/feedback/Alert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const props = defineProps({
}
},
to: {
type: [String, Object] as PropType<RouteLocationNormalized>,
type: [String, Object] as PropType<string | RouteLocationNormalized>,
default: null
},
click: {
Expand Down

0 comments on commit be94fea

Please sign in to comment.