Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

No type checking - Ignores errors in the code #51

Closed
ghost opened this issue Jul 17, 2016 · 1 comment
Closed

No type checking - Ignores errors in the code #51

ghost opened this issue Jul 17, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 17, 2016

With default TSC you can't transpile if there are issues in the code. With this plugin everything seems to be transpiled even with errors. No default type checking?

Example

function foo(name: string): void {}
foo([]); // array and valid with this plugin

In VSCode I get this message: Argument of type 'never[]' is not assignable to parameter of type 'string'.

But Rollup ignores it and bundle just fine!

@Victorystick
Copy link
Contributor

Yes, I'm aware of the issue. I haven't gotten around to it mainly because I intercept typing errors through the editor, and only build with the plugin. It's definitely at the top of my TODO though.

Closing as duplicate of #43.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant