callbackFn(args: IGovedo | IKrava) {
// How to check here type of args
}
In the upper code as you can guess IGovedo and IKrava are interface types. If I use this approach what is the best way to check whether args is IGovedo, IKrava, null, or undefined?
The latest version 1.6 of typescript is used.
Edited: Not really duplicate of older question, but resolved - marked resolving answer.