Problem: Type aliases can be used only in a .ts file appears when working with flowtype.
Solution:
- found here
- go to Code -> Preferences -> Settings
- in your workspace make this change:
Developer from somewhere
Problem: Type aliases can be used only in a .ts file appears when working with flowtype.
Solution: