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 was archived by the owner on Oct 12, 2022. It is now read-only.
This is the first time the < > notation is used. I don't know what this is yet, so I don't have a usggestion to improve, except for saying: this should either be explained, or the example should be rewritten without this syntax.
The text was updated successfully, but these errors were encountered:
That's a type assertion. It's a way of telling TypeScript that you should treat the {} as having the Square type. It's basically casting to another type with no runtime impact.
In https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Interfaces.md#extending-interfaces
The following syntax is used:
This is the first time the < > notation is used. I don't know what this is yet, so I don't have a usggestion to improve, except for saying: this should either be explained, or the example should be rewritten without this syntax.
The text was updated successfully, but these errors were encountered: