What is a simple way to determine if the properties of an object in TypeScript are nullable? For example
export default interface UserDto{
ID?:int;
USER_NAME?:string;
FIRST_NAME?:string;
LAST_NAME?:string;
USER_ROLE?:string;
TEAM?:string;
IS_ACTIVE?:Boolean;
CREATE_DATI?:DateTime;
UPDATE_DATI?:DateTime;
PASSWORD?:string;
}
The USER_ROLE property mentioned above is nullable. How can I check if it is nullable or not within an if statement?