mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
refactor(link): make a
precede p
element for restProps (#1237)
This commit is contained in:
parent
bc1f7b728c
commit
35f4a5cb84
3 changed files with 4 additions and 4 deletions
|
@ -5347,7 +5347,7 @@
|
||||||
{ "type": "forwarded", "name": "mouseleave", "element": "p" }
|
{ "type": "forwarded", "name": "mouseleave", "element": "p" }
|
||||||
],
|
],
|
||||||
"typedefs": [],
|
"typedefs": [],
|
||||||
"rest_props": { "type": "Element", "name": "p | a" }
|
"rest_props": { "type": "Element", "name": "a | p" }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"moduleName": "ListBox",
|
"moduleName": "ListBox",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
/** @restProps {p | a} */
|
/** @restProps {a | p} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the size of the link
|
* Specify the size of the link
|
||||||
|
|
4
types/Link/Link.svelte.d.ts
vendored
4
types/Link/Link.svelte.d.ts
vendored
|
@ -2,8 +2,8 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
|
|
||||||
export interface LinkProps
|
export interface LinkProps
|
||||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["p"]>,
|
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["a"]>,
|
||||||
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["a"]> {
|
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["p"]> {
|
||||||
/**
|
/**
|
||||||
* Specify the size of the link
|
* Specify the size of the link
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue