Add JSX definitions to main repo (#2985)
This commit is contained in:
parent
9d7a4b59b5
commit
47e0539cce
2 changed files with 1115 additions and 0 deletions
1086
packages/astro/astro-jsx.d.ts
vendored
Normal file
1086
packages/astro/astro-jsx.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue