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
The const definition does not block rewriting of the contents of object, but you can handle immutable objects by using as const.
(It can be experienced with typescript 3.4.0-dev)
This is a nice one, didn't know about it.
Let's first wait for it to be in a release and covered with official documentation so that we can reference it.
want you to incorporate features that you think are personally wonderful entering from typescript 3.4
https://github.com/labs42io/clean-code-typescript#avoid-side-effects-part-1
The const definition does not block rewriting of the contents of object, but you can handle immutable objects by using
as const
.(It can be experienced with typescript 3.4.0-dev)
microsoft/TypeScript#29510
The text was updated successfully, but these errors were encountered: