DEV Community

Discussion on: TypeScript 'instanceof' interface is it possible?

Collapse
 
worldpwn profile image
Andrei Kniazev

This article is not about specific domain but about how to check interface at runtime.

And proposed solution works if you don’t need polymorphism.
For example you have role reader that can only read and role writer with claims for what it can write.