GitHub

Original file line numberDiff line numberDiff line change

@@ -7,7 +7,7 @@ import type { ComponentConfig } from '../../types/tv'

77
88

type Link = ComponentConfig<typeof theme, AppConfig, 'link'>

99
10-

export interface LinkProps extends Omit<InertiaLinkProps, 'href' | 'onClick'>, /** @vue-ignore */ Omit<ButtonHTMLAttributes, 'type' | 'disabled'>, /** @vue-ignore */ Omit<AnchorHTMLAttributes, 'href' | 'target' | 'rel' | 'type'> {

10+

export interface LinkProps extends Partial<Omit<InertiaLinkProps, 'href' | 'onClick'>>, /** @vue-ignore */ Omit<ButtonHTMLAttributes, 'type' | 'disabled'>, /** @vue-ignore */ Omit<AnchorHTMLAttributes, 'href' | 'target' | 'rel' | 'type'> {

1111

/**

1212

* The element or component this component should render as when not a link.

1313

* @defaultValue 'button'

Original file line numberDiff line numberDiff line change

@@ -7,7 +7,7 @@ import type { ComponentConfig } from '../../types/tv'

77
88

type Link = ComponentConfig<typeof theme, AppConfig, 'link'>

99
10-

export interface LinkProps extends Omit<RouterLinkProps, 'custom'>, /** @vue-ignore */ Omit<ButtonHTMLAttributes, 'type' | 'disabled'>, /** @vue-ignore */ Omit<AnchorHTMLAttributes, 'href' | 'target' | 'rel' | 'type'> {

10+

export interface LinkProps extends Partial<Omit<RouterLinkProps, 'custom'>>, /** @vue-ignore */ Omit<ButtonHTMLAttributes, 'type' | 'disabled'>, /** @vue-ignore */ Omit<AnchorHTMLAttributes, 'href' | 'target' | 'rel' | 'type'> {

1111

/**

1212

* The element or component this component should render as when not a link.

1313

* @defaultValue 'button'

Read the original on github.com ↗