-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Object strict literal assigment checking is omitted for the empty type #4463
Comments
Ryan had proposed a rule that would error here if A at least had some optional members, but not if it was empty. I'm not sure what the rationale was for not erroring against empty types as well: #3842 |
Lots of people use |
Are values of |
The |
Can's say I see your point:
Fine, since it's just a type let's keep it. I was talking about values of type
Why would you warn? With all what's above
Business sees value in it and wants it. I would not call it faking unless proven otherwise. If const enum Nothing {} Ugh, |
just thought you guys might be interested https://github.com/aleksey-bykov/by-design-script/blob/master/README.md#literal-strictness |
in #3823
The text was updated successfully, but these errors were encountered: