digitinary-ui
Version:
Digitinary UI Library
13 lines (10 loc) • 460 B
TypeScript
// In a file named `jsx.d.ts` in your project's root or a suitable directory
declare namespace JSX {
interface IntrinsicElements {
// Define the types for HTML tags
div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
// Define the types for custom components
SVG: React.SVGProps<SVGSVGElement>;
}
}