mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Add missing global attributes to JSX definition (#9404)
* fix: add some missing attributes to our JSX definitions * chore: changeset * fix: use empty string as type
This commit is contained in:
parent
f47b85ce6f
commit
8aa17a64b4
2 changed files with 13 additions and 2 deletions
5
.changeset/dull-masks-eat.md
Normal file
5
.changeset/dull-masks-eat.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fixed some newer HTML attributes not being included in our type definitions
|
10
packages/astro/astro-jsx.d.ts
vendored
10
packages/astro/astro-jsx.d.ts
vendored
|
@ -517,7 +517,8 @@ declare namespace astroHTML.JSX {
|
|||
| 'search'
|
||||
| 'send'
|
||||
| undefined
|
||||
| null;
|
||||
| null;
|
||||
exportparts?: string | undefined | null;
|
||||
hidden?: boolean | string | undefined | null;
|
||||
id?: string | undefined | null;
|
||||
inert?: boolean | string | undefined | null;
|
||||
|
@ -533,18 +534,23 @@ declare namespace astroHTML.JSX {
|
|||
| undefined
|
||||
| null;
|
||||
is?: string | undefined | null;
|
||||
|
||||
// Microdata API
|
||||
itemid?: string | undefined | null;
|
||||
itemprop?: string | undefined | null;
|
||||
itemref?: string | undefined | null;
|
||||
itemscope?: boolean | string | undefined | null;
|
||||
itemtype?: string | undefined | null;
|
||||
|
||||
lang?: string | undefined | null;
|
||||
part?: string | undefined | null;
|
||||
popover?: boolean | string | undefined | null;
|
||||
slot?: string | undefined | null;
|
||||
spellcheck?: 'true' | 'false' | boolean | undefined | null;
|
||||
style?: string | StyleObject | undefined | null;
|
||||
tabindex?: number | string | undefined | null;
|
||||
title?: string | undefined | null;
|
||||
translate?: 'yes' | 'no' | undefined | null;
|
||||
translate?: 'yes' | 'no' | '' | undefined | null;
|
||||
|
||||
// <command>, <menuitem>
|
||||
radiogroup?: string | undefined | null;
|
||||
|
|
Loading…
Reference in a new issue