Skip to content

Commit 4e6067e

Browse files
authored
Merge pull request #7201 from nextcloud-libraries/fix/nc-button-to-type
2 parents cfc9bc8 + d78e72d commit 4e6067e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/NcButton/NcButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ td.row-size {
434434

435435
<script setup lang="ts">
436436
import type { Slot } from 'vue'
437-
import type { RouteLocation } from 'vue-router'
437+
import type { RouteLocationRaw } from 'vue-router'
438438
439439
import { computed, inject, toRef } from 'vue'
440440
import { routerKey, useLink } from 'vue-router'
@@ -535,7 +535,7 @@ interface NcButtonProps {
535535
*
536536
* Note: This takes precedence over the href attribute.
537537
*/
538-
to?: string|RouteLocation
538+
to?: RouteLocationRaw
539539
540540
/**
541541
* Specifies the button native type

0 commit comments

Comments
 (0)