Skip to content

Instantly share code, notes, and snippets.

@axxag
Created May 9, 2017 18:19
Show Gist options
  • Save axxag/f15aa329686cdd1a51f6dc344daaa9b8 to your computer and use it in GitHub Desktop.
Save axxag/f15aa329686cdd1a51f6dc344daaa9b8 to your computer and use it in GitHub Desktop.
Convert Flow to Typescript
find . -name "*.js" -exec bash -c 'mv "$1" "$(sed "s/\.js$/.tsx/" <<< "$1")"' - '{}' \;
find . -name "types.js.flow" -exec bash -c 'mv "$1" "$(sed "s/\types.js.flow$/index.d.ts/" <<< "$1")"' - '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment