-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
Turn on strictBindCallApply in tsconfig #1835
Comments
I tried to set faker/src/modules/helpers/unique.ts Line 140 in c46c539
But as we want to get rid of this anyway I will put no more effort into |
Is it possible to just replace |
Could you explain a bit how you come to this conclusion? I would like to understand what your thought-process is. |
Since the value isnt bound to anything useful in the first place (aka this isnt bound to anything specific since it isnt even in the helpers module directly and thus doesnt get bound by the constructor). We could just drop it entirely. |
Done: #1842 |
Blocked by #1842 I no longer know how to fix these lines: this[name] = this[name].bind(this); For most modules I can simply do: this[name] = this[name].bind(this, ...[]); but that doesn't work for the helpers module. |
Blocked by #2102. |
I will close this as this has been activated implicitly in #2102. |
#651 partially activated strict mode, this flag was omitted at that time and should probably be turned on.
faker/tsconfig.json
Line 12 in c46c539
Related issues:
The text was updated successfully, but these errors were encountered: