Closed as not planned
Description
TS team decided to use /* @fooImportSource */
syntax for importing JSX types (otherwise if JSX types are imported with import
syntax then the JSX expressions do not see the JSX
namespace), but the playground is unaware that it needs to import the dependencies for that sort of syntax:
/* @jsxImportSource solid-js */
const d = <div /> // Error: interface JSX.IntrinsicElements is not defined, because playground does not install solid-js
If we could instead rely on import
for importing JSX types (as would be intuitive and aligned with EcmasScript standards and conventions, instead of having to use new @fooImportSource
syntax), the playground example (which will install solid-js based on the import
statement) would just work already.