Typeguards
Description
When you retrieve data with GetMessage and GetMessages, you will not always know the type of the fetched data. For this reason Any
provide Typeguards function that will allow auto-completion in typescript.
If you only want to retrieve the message type without the use of typeguards you can query the mesage.type
attribute contain inside the BaseMessage object you retrieve.
Usage
Import the Any declaration to interact with the different kind of typeguards avalaible.
With Post
With Aggregate
With Store
With Forget
With Program
Last updated