I have an interface in TypeScript.
interface Employee{
id: number;
name: string;
salary: number;
}
I would like to make salary
as a nullable field (Like we can do in C#). Is this possible to do in TypeScript?
I have an interface in TypeScript.
interface Employee{
id: number;
name: string;
salary: number;
}
I would like to make salary
as a nullable field (Like we can do in C#). Is this possible to do in TypeScript?