refactor(link): make a precede p element for restProps (#1237)

This commit is contained in:
metonym 2022-04-09 14:17:36 -07:00 committed by GitHub
commit 35f4a5cb84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -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",

View file

@ -1,5 +1,5 @@
<script> <script>
/** @restProps {p | a} */ /** @restProps {a | p} */
/** /**
* Specify the size of the link * Specify the size of the link

View file

@ -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