mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
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:
parent
3ffaedaeaa
commit
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user