Pierre Bondoerffer

Results 4 comments of 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...