Interface is:
interface b { (): void; }
I tried to impement this interface:
class A implements b { function(): void { // Body } }
How to implement the interface?
interface b { setFunc: void; }
class A implements b { setFunc: void = //sth function else }
Check the Class interface for more information in this link
1.4m articles
1.4m replys
5 comments
56.9k users