We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
relative-element
1 parent 8d86a67 commit ccd68e0Copy full SHA for ccd68e0
src/relative-time-element-define.ts
@@ -22,6 +22,10 @@ declare global {
22
interface HTMLElementTagNameMap {
23
'relative-time': RelativeTimeElement
24
}
25
+}
26
+
27
+// @ts-expect-error This is needed for consumers using React 19 and above but TypeScript complains because `react` isn't a dependency of the project.
28
+declare module 'react' {
29
namespace JSX {
30
interface IntrinsicElements {
31
['relative-time']: JSXBase['span'] & Partial<Omit<RelativeTimeElement, keyof HTMLElement>>
0 commit comments