From 145a97e135526d33a30d950c06c31ee79fd523db Mon Sep 17 00:00:00 2001 From: eps1lon Date: Fri, 24 May 2024 17:29:15 +0200 Subject: [PATCH] Use scoped JSX namespace The global one is removed in React 19 types and deprecated in 18. It was backported down to React 15 types. --- css.d.ts | 1 + index.d.ts | 1 + macro.d.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/css.d.ts b/css.d.ts index d83e9977..9148a3a0 100644 --- a/css.d.ts +++ b/css.d.ts @@ -1,3 +1,4 @@ +import type { JSX } from "react"; // Definitions by: @types/styled-jsx declare module 'styled-jsx/css' { diff --git a/index.d.ts b/index.d.ts index 422fdd3f..e23338a2 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,3 +1,4 @@ +import type { JSX } from "react"; /// /// /// diff --git a/macro.d.ts b/macro.d.ts index 927e7594..92c8df5d 100644 --- a/macro.d.ts +++ b/macro.d.ts @@ -1,3 +1,4 @@ +import type { JSX } from "react"; declare module 'styled-jsx/macro' { namespace macro { function resolve(