Skip to content

Commit

Permalink
Fix errors related to typehint when generating docs
Browse files Browse the repository at this point in the history
Summary:
After pulling in AsyncStorage doc changes, getting typehint errors when running docs. This fixes that issue.

**Test plan (required)**

Opened http://localhost:8079/react-native/index.html

Clicked around. No errors. Also successfully ran:

```
node server/generate.js
```
Closes facebook#8412

Differential Revision: D3482007

Pulled By: JoelMarcey

fbshipit-source-id: 7b0da2b2b38fd1f1bdec1b7c810ee70c536dd2bb
  • Loading branch information
Christine Abernathy authored and Morgan Pretty committed Aug 24, 2016
1 parent 12e0a14 commit 63a1f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/server/extractDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ function getTypehint(typehint) {
try {
var typehint = JSON.parse(typehint);
} catch (e) {
return typehint.split('|').map(type => type.trim());
return typehint.toString().split('|').map(type => type.trim());
}
return getTypehintRec(typehint);
}
Expand Down

0 comments on commit 63a1f0f

Please sign in to comment.