typescript mark everything as any code example
Example 1: ts interface optional parameter
interface Person {
name: string;
age: number;
phone?: string;
}
let p: Person = {name: "Ashlee", age: 29};
console.log(p);
Example 2: interface ts one valu
// use type instead interface
type StringOrNull = string | null;