Skip to content

Instantly share code, notes, and snippets.

@willesandstrom
willesandstrom / js-to-ts.sh
Created August 13, 2018 08:33
javascript to typescript react
FILES=`find ./src | grep \.js$`
for f in $FILES; do
name=${f%.*}
if head $f | grep --quiet React; then
ext="tsx"
else
ext="ts"
fi

Keybase proof

I hereby claim:

  • I am wille on github.
  • I am wsm (https://keybase.io/wsm) on keybase.
  • I have a public key ASCYb5M6oOr6CysKCrswxkHwAXgUk918rpGXDmcWpTZQNQo

To claim this, I am signing this object: