tests/cases/conformance/jsx/file.tsx(9,2): error TS2322: Type '{ "data-foo": number; }' is not assignable to type '{ "data-foo"?: string; }'. Types of property '"data-foo"' are incompatible. Type 'number' is not assignable to type 'string'. ==== tests/cases/conformance/jsx/file.tsx (1 errors) ==== declare module JSX { interface Element { } interface IntrinsicElements { test1: { "data-foo"?: string }; } } // Error ; ~~~~~ !!! error TS2322: Type '{ "data-foo": number; }' is not assignable to type '{ "data-foo"?: string; }'. !!! error TS2322: Types of property '"data-foo"' are incompatible. !!! error TS2322: Type 'number' is not assignable to type 'string'. // OK ; ; ;