Object Type: Create new type, use it and print out
井民全, Jing, mqjing@gmail.com
Object type is useful to descript complex data type such as status, configure, member, etc. As doc[1] said, we group and pass around data is through objects. Here is a usage example. For more great docs, check[1-2].
Keyword
interface -- create a new type
type -- a type alias
Code
References
Object Types, https://www.typescriptlang.org/docs/handbook/2/objects.html
Types vs. interfaces in TypeScript, https://blog.logrocket.com/types-vs-interfaces-in-typescript/