Fix errors related to typehint when generating docs

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 https://github.com/facebook/react-native/pull/8412

Differential Revision: D3482007

Pulled By: JoelMarcey

fbshipit-source-id: 7b0da2b2b38fd1f1bdec1b7c810ee70c536dd2bb
This commit is contained in:
Christine Abernathy 2016-06-24 10:01:09 -07:00 коммит произвёл Facebook Github Bot 6
Родитель 3ffaedaeaa
Коммит f66acad30b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);
}