Skip to content

Commit fb94191

Browse files
committed
React 19 compat
1 parent c1480eb commit fb94191

File tree

7 files changed

+12
-0
lines changed

7 files changed

+12
-0
lines changed

src/Footer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { JSX } from "./tools/JSX";
12
import React, { memo, forwardRef, type ReactNode, type CSSProperties } from "react";
23
import { getLink } from "./link";
34
import type { RegisteredLinkProps } from "./link";

src/Header/Header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-disable no-inner-declarations */
2+
import type { JSX } from "../tools/JSX";
23
import React, {
34
memo,
45
forwardRef,

src/Modal/Modal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { JSX } from "../tools/JSX";
12
import React, { memo, forwardRef, type CSSProperties, type ReactNode } from "react";
23
import { fr } from "../fr";
34
import { cx } from "../tools/cx";

src/SearchBar/SearchBar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { JSX } from "../tools/JSX";
12
import React, { memo, forwardRef, type CSSProperties } from "react";
23
import { symToStr } from "tsafe/symToStr";
34
import { assert } from "tsafe/assert";

src/Summary.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { JSX } from "./tools/JSX";
12
import React, { memo, forwardRef, useId, type CSSProperties } from "react";
23
import { symToStr } from "tsafe/symToStr";
34
import { assert } from "tsafe/assert";

src/i18n.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { JSX } from "./tools/JSX";
12
import { useMemo } from "react";
23
import { capitalize } from "tsafe/capitalize";
34

src/tools/JSX.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import type { ReactElement } from "react";
2+
3+
export namespace JSX {
4+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
5+
export interface Element extends ReactElement<any, any> {}
6+
}

0 commit comments

Comments
 (0)