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);}
You can define the parameter to be optional with ?
:
interface SomeInterface { SomeMethod(arg1: string, arg2: string, arg3?: boolean);}