fix vscode flow Type aliases can be used only in a .ts file

Developer from somewhere

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:
{
  "javascript.validate.enable": false
}