Skip to content

Commit f66acad

Browse files
Christine AbernathyFacebook Github Bot 6
authored andcommitted
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 #8412 Differential Revision: D3482007 Pulled By: JoelMarcey fbshipit-source-id: 7b0da2b2b38fd1f1bdec1b7c810ee70c536dd2bb
1 parent 3ffaeda commit f66acad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/server/extractDocs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ function getTypehint(typehint) {
377377
try {
378378
var typehint = JSON.parse(typehint);
379379
} catch (e) {
380-
return typehint.split('|').map(type => type.trim());
380+
return typehint.toString().split('|').map(type => type.trim());
381381
}
382382
return getTypehintRec(typehint);
383383
}

0 commit comments

Comments
 (0)