type Guard is a feature of TypeScript that automatically narrows down the scope of types.A good use of typeguard is to avoid type assertion code.types