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:
Родитель
3ffaedaeaa
Коммит
f66acad30b
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче