-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Let the compiler shout at me on typeerrors: #39
Comments
PS: totally the same behaviour when s/string/number/ |
OK, in the meantime I was able to find out, that
After some googling I found that correct syntax for the class were: class HelloWorld {
static hello(name: number = "World"): number {
return "Hello, " + name + "!"
}
} compiling this, now successfully complains about types beeing incorrect:
Therefore I have to assume, that the typescript-track currently doesn't even use typescript! |
Good point. I filed a bug/feature question. |
You filed a bug/feature where? Do you have a link/crossref? |
Also, a better way to alter the script line seems to be: This way there is no javascript generated which leads to running the tests twice by |
What rabbit hole. Others are also using --noEmit. I think that is what we are going to use too: ds300/react-native-typescript-transformer#13 |
@masters3d thanks for doing that PR! Looks like a good solution. And thanks for catching this @NobbZ. Just implemented the tsc --noEmit in my own copy of the exercises and found out my Hello World solution didn't pass anymore hah. |
I expect the following snippet to barf at me before even trying to execute the tests:
Instead of barfing,
yarn test && yarn lint
just complains aboutstring
beeing a variable name which clashes with a built in type:So currently, in how the tests are run, it seems as if typescript is just another typeless hell around javascript. Therefore the request to do the following:
The text was updated successfully, but these errors were encountered: