Skip to content

Image JSX type #4002

@Netail

Description

@Netail

Extension Version

0.20260520.1

VS Code Version

1.120.0

Operating system Version

MacOS 26.5

Steps to reproduce

  1. In JSX use <Image /> without any imports for such component
  2. Look up the type it uses

Issue

It seems to pull a non JSX element type from /Users/me/.vscode/extensions/typescriptteam.native-preview-0.20260520.1-darwin-arm64/lib/lib.dom.d.ts;

declare var Image: {
    new(width?: number, height?: number): HTMLImageElement;
};

which should not be allowed to be JSX element as it's an HTMLImageElement constructor

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions