You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Have you already searched for or opened a corresponding issue in the typescript repo?
I think this is better fixed in the typescript compiler if they consider this a bug. Otherwise we can add an exception for this case to the rules.
@ajafff The related TS issues are #10727 and #12756. It seems from the latter that people want support for this but it doesn't really seem to have been fixed thus far at least? I'm not sure if it ever will be fixed.
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
TSLint gives me the message
Expected behavior
TSLint should be ok with this usage of
Object.assign({}, this)
because per TS2698, "spread types may only be created from object types."Somewhat related to this is: #2824
The text was updated successfully, but these errors were encountered: