custom-elements.d.ts 432 B

1234567891011121314151617
  1. import { DIFFS_TAG_NAME } from "@pierre/diffs"
  2. /**
  3. * TypeScript declaration for the <diffs-container> custom element.
  4. * This tells TypeScript that <diffs-container> is a valid JSX element in SolidJS.
  5. * Required for using the @pierre/diffs web component in .tsx files.
  6. */
  7. declare module "solid-js" {
  8. namespace JSX {
  9. interface IntrinsicElements {
  10. [DIFFS_TAG_NAME]: HTMLAttributes<HTMLElement>
  11. }
  12. }
  13. }
  14. export {}