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" }
],
"typedefs": [],
"rest_props": { "type": "Element", "name": "p | a" }
"rest_props": { "type": "Element", "name": "a | p" }
},
{
"moduleName": "ListBox",

View file

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

View file

@ -2,8 +2,8 @@
import type { SvelteComponentTyped } from "svelte";
export interface LinkProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["p"]>,
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["a"]> {
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["a"]>,
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["p"]> {
/**
* Specify the size of the link
* @default undefined