Pierre Bondoerffer
Pierre Bondoerffer
If you are stumbling on this issue from Google, an alternative is to use the `as` casting operator: ```typescript const bar = foo as string; ```
According to [TypeScript docs](https://www.typescriptlang.org/docs/handbook/basic-types.html#type-assertions): > The two samples are equivalent. Using one over the other is mostly a choice of preference; however, when using TypeScript with JSX, only `as`-style assertions...
@zibs Could you have a look? We would need this fix as well! :+1:
I believe it has to do with the fact that they are, in fact, included. As you can see from [looking at the package contents](https://docs.npmjs.com/cli/v6/commands/npm-pack): ```npm $ npm pack hookrouter@latest...
This was done in dc485b8023fdcdb2b7a87da006603af1dd2eb1bf, thank you for spotting this :sparkles:
Any updates?
If you were struggling with this, as a temporary workaround / hack for Preact X, you can do the following: ```js import picostyle from 'picostyle'; import { h } from...