My function have to receive one of fixed five types of string like "success, error, warning, info, question". So that I write function like this:
export const notify = (type: 'success' | 'error' | 'warning' | 'info' | 'question' ,message)=>{
// some code
}
In that case I am facing this error : Parsing error: Unexpected token, expected "," (7:27)

Same thing I did my another project without any problem.
But now what did I wrong, I cant figure it out.
please help me.