0

Here is my Code which works perfect in both conditions

export function* Login(action: PayloadAction<ILogin>) {
  try {
    //some code here
  } catch {}
}

export function* Login(action: any) {
  try {
    //some code here
  } catch {}
}

Thanks for help

Martin Kadlec
  • 4,702
  • 2
  • 20
  • 33
  • Does this answer your question? [What is TypeScript and why would I use it in place of JavaScript?](https://stackoverflow.com/questions/12694530/what-is-typescript-and-why-would-i-use-it-in-place-of-javascript) – Aleksey L. Dec 01 '21 at 12:01
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Dec 07 '21 at 13:21

0 Answers0