-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
Improve options typing #7
Conversation
9c75d4c
to
0e76364
Compare
0e76364
to
4c8f4e5
Compare
Pull Request Test Coverage Report for Build 35
💛 - Coveralls |
lib/EntityFactory.ts
Outdated
|
||
const project = new Project(); | ||
const sources: SourceFile[] = []; | ||
|
||
if (!this.em.options.entitiesDirsTs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is wrong with this? it is a problem when you enable more strict TS settings? i like to use this falsy comparison as its imho more readable and it is usually more accurate than strict check against undefined
(what if you provide null, empty string, zero... still not valid but passes the condition).
4c8f4e5
to
87e54c8
Compare
@B4nan it's ready to merge. A lot of thinks was removed, so PR is only about better Options typing. Next time I'll try to make smaller and more indipendent PRs. BTW because the code coverage has been decreased (-0.01% 😄), PR is marked as failing. Is it necessary? |
I guess that is just because you removed some tested code, don't worry about that :] |
No description provided.