TLDR: "T extend {}" allow you your function or class' method to accept pretty much anything except null and undefined. T can be a primitive though. On the other hand, only T, allow accepting also those value, null and undefined I do work with Typescr...

Markdown supported · ⌘↵ to post
No responses yet.