79322490

Date: 2025-01-01 23:26:32
Score: 2
Natty:
Report link

I got this error while using redux-persist, I moved the types from other files (ie external modules) to above of the declaration of that variable throwing ts-error

Error message of exporting type from external modules

It was complaining about two types(InitialStateOfControlSlice, InitialStateOfProfileSlice), so I just made sure they are in the same file. Typescript compiler happy!!

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shahil Yadav