Skip to content

Commit

Permalink
Use scoped JSX namespace
Browse files Browse the repository at this point in the history
The global one is removed in React 19 types and deprecated in 18.

It was backported down to React 15 types.
  • Loading branch information
eps1lon committed May 24, 2024
1 parent 18ddefd commit 145a97e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions css.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { JSX } from "react";
// Definitions by: @types/styled-jsx <https://www.npmjs.com/package/@types/styled-jsx>

declare module 'styled-jsx/css' {
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { JSX } from "react";
/// <reference types="./css" />
/// <reference types="./macro" />
/// <reference types="./style" />
Expand Down
1 change: 1 addition & 0 deletions macro.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { JSX } from "react";
declare module 'styled-jsx/macro' {
namespace macro {
function resolve(
Expand Down

0 comments on commit 145a97e

Please sign in to comment.