15 lines
330 B
TypeScript
15 lines
330 B
TypeScript
import type { ReactNode } from "react"
|
|
import type { Node } from "./node"
|
|
|
|
declare global {
|
|
namespace JSX {
|
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
|
interface IntrinsicElements {
|
|
"reacord-element": {
|
|
createNode: () => Node
|
|
children?: ReactNode
|
|
}
|
|
}
|
|
}
|
|
}
|