Fix TypeScript syntax validation issues

If you’re using TypeScript and run into conflicts between the SDK’s data definitions and your own, use a type assertion (with the as keyword) to fix them.

For example, when sending a custom message, RC defines a user object to maintain consistency across platforms. If you’ve also defined a user object, it may cause the TypeScript compiler to throw an error.

Here’s how RC defines the user object:

user:{
   id:'user2',
   name:'Bob',
   portraitUri:'https://www.rongcloud.io/images/bob.jpg' 
},