Add JSX definitions to main repo (#2985)

This commit is contained in:
Erika 2022-04-04 12:26:15 -04:00 committed by GitHub
parent 9d7a4b59b5
commit 47e0539cce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1115 additions and 0 deletions

1086
packages/astro/astro-jsx.d.ts vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -13,6 +13,35 @@ export interface AstroBuiltinProps {
'client:idle'?: boolean;
'client:media'?: string;
'client:visible'?: boolean;
'client:only'?: boolean | string;
}
export interface AstroBuiltinAttributes {
'class:list'?:
| Record<string, boolean>
| Record<any, any>
| Iterable<string>
| Iterable<any>
| string;
'set:html'?: any;
'set:text'?: any;
}
export interface AstroDefineVarsAttribute {
'define:vars'?: any;
}
export interface AstroStyleAttributes {
/** @deprecated Use `is:global` instead */
global?: boolean;
'is:global'?: boolean;
'is:inline'?: boolean;
}
export interface AstroScriptAttributes {
/** @deprecated Hoist is now the default behavior */
hoist?: boolean;
'is:inline'?: boolean;
}
export interface AstroComponentMetadata {