0
Fork 0
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:
Erika 2023-12-11 11:08:12 -05:00 committed by GitHub
parent f47b85ce6f
commit 8aa17a64b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixed some newer HTML attributes not being included in our type definitions

View file

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