typescript function parameter interface code example
Example 1: typescript interface function
interface IEmployee {
empCode: number;
empName: string;
getSalary: (number) => number; // arrow function
getManagerName(number): string;
}
Example 2: interface ts one valu
// use type instead interface
type StringOrNull = string | null;