Не очень элегантно, но это работает:
// foo.d.ts
declare namespace React {
interface HTMLAttributes<T> {
itemscope?: boolean;
itemtype?: string;
}
}
// app.tsx
function foo(): JSX.Element {
return (
<h1 itemscope itemtype="http://schema.org/Product">
Amasia
</h1>
);
}
У меня работает (Typescript 3.4.5).