Skip to content

pattern_format.d.ts and numeric_format.d.ts use REMOVED JSX Namespace in React 19 #877

@KemalCos

Description

@KemalCos

Describe the issue and the actual behavior

If I use "skipLibCheck": true in the tsconfig.json I get ts error that namespace 'JSX' cannot found.

In React 19 the namespace 'JSX' is not global anymore.

export default function PatternFormat<BaseType = InputAttributes>(props: PatternFormatProps<BaseType>): JSX.Element;
export default function NumericFormat<BaseType = InputAttributes>(props: NumericFormatProps<BaseType>): JSX.Element;

Describe the expected behavior

I would expect that 'React.JSX' will be used instead of 'JSX'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions