Typescript - Default parameters on class with interface Typescript - Default parameters on class with interface typescript typescript

Typescript - Default parameters on class with interface


You can define the parameter to be optional with ?:

interface SomeInterface {     SomeMethod(arg1: string, arg2: string, arg3?: boolean);}