summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/custom-elements.d.ts
blob: 49ec4449fa209d7b5e60d8d4b735f9350dfc066f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { DIFFS_TAG_NAME } from "@pierre/diffs"

/**
 * TypeScript declaration for the <diffs-container> custom element.
 * This tells TypeScript that <diffs-container> is a valid JSX element in SolidJS.
 * Required for using the @pierre/diffs web component in .tsx files.
 */

declare module "solid-js" {
  namespace JSX {
    interface IntrinsicElements {
      [DIFFS_TAG_NAME]: HTMLAttributes<HTMLElement>
    }
  }
}

export {}