We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6f128b + e1c0ffe commit f1dbe3dCopy full SHA for f1dbe3d
README.md
@@ -24,7 +24,7 @@ npm install flow-to-typescript --save
24
25
```sh
26
# Install globally
27
-yarn add --global flow-to-typescript
+yarn global add flow-to-typescript
28
29
# Compile a file (all of these are equivalent)
30
flow2ts my/file.js.flow
@@ -41,7 +41,7 @@ import { compile } from 'flow-to-typescript'
41
import { readFileSync, writeFileSync } from 'fs'
42
43
let path = 'path/to/file.js.flow'
44
-let file = readFileSync(path, 'utf-8)
+let file = readFileSync(path, 'utf-8')
45
46
compile(file, path).then(ts =>
47
writeFileSync('path/to/file.ts', ts)
0 commit comments