feat: adding support for jsx
This commit is contained in:
13
jsxFactory.d.ts
vendored
Normal file
13
jsxFactory.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { IRenderAttributes } from './lib/helpers';
|
||||
|
||||
declare namespace JSX {
|
||||
type Element = Node;
|
||||
export interface AttributeCollection {
|
||||
[name: string]: string | boolean | (() => any);
|
||||
className: string;
|
||||
}
|
||||
type RenderAttributes = {
|
||||
[TagName in keyof HTMLElementTagNameMap]: IRenderAttributes<TagName>;
|
||||
};
|
||||
export interface IntrinsicElements extends RenderAttributes {}
|
||||
}
|
||||
Reference in New Issue
Block a user