mockdeep / typewiz

Automatically discover and add missing types in your TypeScript code
https://medium.com/@urish/manual-typing-is-no-fun-introducing-typewiz-58e3e8813f4c
1.1k stars 46 forks source link

Angular support #73

Closed urish closed 5 years ago

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 89.181% when pulling 4d0e5228db1eb47c477a7fb1aca6477503029686 on angular into d487bb760cedaebe876056b5dde1bc2c20a7fbcd on master.

FallenRiteMonk commented 6 years ago

Whats the state of this PR?

urish commented 6 years ago

It was pretty functional, though it had some issue when I used it for an Angular project created with yarn.

If you are interested, I can write for you instructions how to test it in your project (before it's published to NPM), so you can share your feedback as well

FallenRiteMonk commented 6 years ago

@urish that would be great! Thanks

tw3 commented 5 years ago

It was pretty functional, though it had some issue when I used it for an Angular project created with yarn.

If you are interested, I can write for you instructions how to test it in your project (before it's published to NPM), so you can share your feedback as well

Hey @urish I would definitely be interested in learning how to use this tool for an Angular 5 codebase, any tips?

urish commented 5 years ago

@tw3 @FallenRiteMonk I published the beta version to npm, so testing should now be pretty much straight forward:

https://medium.com/@urish/angular-schematics-and-the-future-of-typewiz-c266a5442c82

FallenRiteMonk commented 5 years ago

@urish Just tried it on a small project of mine and got following error:

ERROR in : TypeError: Cannot read property 'text' of undefined

Further in the error stack trace I found multiple lines similar to this one:

Error: <PATH_TO_PROJECT>/apps/fortysix/src/app/components/features/features.component.ts is missing from the TypeScript compilation.

This is in a Nx workspace. Do you want me to give you more info's here, or should I open a new issue?

urish commented 5 years ago

@FallenRiteMonk yes, a new issue please. Can you please check if commenting out some of the code in features.component.ts fixes this TypeError?