Skip to content

Commit

Permalink
Merge pull request facebook#2223 from cody/stripTypes
Browse files Browse the repository at this point in the history
Add stripTypes option to npm docs
  • Loading branch information
zpao committed Sep 22, 2014
2 parents 97a41db + 7597cfc commit 7cf350a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions npm-react-tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ This package installs a `jsx` executable that can be used to transform JSX into
--output-charset <utf8 | win1252 | ...> Charset of output (default: utf8)
--harmony Turns on JS transformations such as ES6 Classes etc.
--source-map-inline Embed inline sourcemap in transformed source
--strip-types Strips out type annotations

## API

Expand All @@ -37,6 +38,7 @@ option | values | default
`sourceMap` | `true`: append inline source map at the end of the transformed source | `false`
`harmony` | `true`: enable ES6 features | `false`
`filename` | the output filename for the source map | `"source.js"`
`stripTypes` | `true`: strips out type annotations | `false`

```js
var reactTools = require('react-tools');
Expand Down

0 comments on commit 7cf350a

Please sign in to comment.