type User = { readonly _id: string; name: string; email: string; isActive: boolean; hobbies: string; }; Here we have declared a User type that has properties like _id (readonly) - readonly _id: string; name - name: string; email - emai...

Markdown supported · ⌘↵ to post
No responses yet.