Solid's playground has been internally set to typescript's default verbatimModuleSyntax: false
This config does not allow to import types without the type prefix.
Solid's source at /examples was not yet updated to follow this new guideline.
IMO solid's playground should set verbatimModuleSyntax: true, so there is less friction when copy pasting code into the playground, but even if we would do that, it's probably not a bad idea to follow this import type convention in our own code, for readability sake.
The diff is less granular as I would like it, because some of the source was not formatted with prettier.
Solid's playground has been internally set to typescript's default
verbatimModuleSyntax: false
This config does not allow to import types without thetype
prefix. Solid's source at/examples
was not yet updated to follow this new guideline.IMO solid's playground should set
verbatimModuleSyntax: true
, so there is less friction when copy pasting code into the playground, but even if we would do that, it's probably not a bad idea to follow thisimport type
convention in our own code, for readability sake.The diff is less granular as I would like it, because some of the source was not formatted with prettier.