There are some cases, where we need to detect the type of the object to get the correct implementation of our method. Let me show you a case type Square = { size: number; }; type Rectangle = { with: number; height: number; }; type Circle = { ...

Markdown supported · ⌘↵ to post
No responses yet.