17 lines · 432 B · TypeScript
RawDownload
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 {}