1.type
type MyObj = {a: string;b: number;c: () => number;
};
2.interface
interface MyObj {a: string;b: number;c: () => number;
}
3. class
class MyObj {a:string;b:number;c:()=>number
}
// Error: Property 'staticProperty' does not exist on type 'M'.