Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send type checking to the client console #1

Closed
lastmjs opened this issue Oct 12, 2016 · 2 comments
Closed

Send type checking to the client console #1

lastmjs opened this issue Oct 12, 2016 · 2 comments

Comments

@lastmjs
Copy link
Owner

lastmjs commented Oct 12, 2016

This would be awesome for using TS. We could get the benefits of type checking in the browser without the performance penalty. We might even be able to turn on strict type checking so that type checks stop the script being requested from running, if that's desirable, which I kind of think isn't because it is too restricting. But sending the type errors to the client is awesome.

@lastmjs
Copy link
Owner Author

lastmjs commented Oct 12, 2016

Great idea potentially! In a non-strict type check mode, the browser console will log the type errors as warnings. In type check strict mode, the browser will not execute the script and will log all type errors as errors. This should lead to more flexibility and understanding of how TS type checking works. I've seen a lot of confusion about TS type errors, since depending on how you have transpilation set up, aren't really errors because the JavaScript is still transpiled to and executed.

@lastmjs
Copy link
Owner Author

lastmjs commented Dec 22, 2016

A good place to start for this will be this issue: frankwallis/plugin-typescript#183

@lastmjs lastmjs closed this as completed Jul 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant