Readonly (readonly) property in Typescript
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...