JS1191: Expected ','. Write 'identifier : Type' rather than 'Type identifier' to declare a typed parameter
A function declaration includes parameters that are not separated with commas or a type annotated parameter that is specified as Type identifier instead of identifier : Type.
To correct this error
Make sure all parameters are separated with commas.
Specify type-annotated parameters with the identifier : Type syntax.