Suppose to have this Interface: Employee.model.ts:
interface EmployeeInterface{
name: string;
salary?: number;
date: Date;
}
I know how I can do :
export class Employee implements EmployeeInterface{
public name: string;
public salary: number;
public date: Date;
}
My question is how I specify in the constructor that salary parameters can be or not canno't be?