SyntaxFix
Write A Post
Hire A Developer
Questions
You can do this without an interface.
class myClass{ public error(message: string, title?: string, autoHideAfter? : number){ //.... } }
use the ? operator as an optional parameter.
?