Skip to content

Commit 0d629d6

Browse files
committed
test: Update Flow annotations for improved analysis
1 parent c411f00 commit 0d629d6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

declarations/comment.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ type DocumentationConfig = {
1212
theme: string,
1313
requireExtension?: Array<string>,
1414
parseExtension: Array<string>,
15-
noReferenceLinks?: boolean
15+
noReferenceLinks?: boolean,
16+
markdownToc?: boolean,
17+
documentExported?: boolean,
18+
hljs?: Object
1619
};
1720

1821
type CommentError = {
@@ -112,7 +115,9 @@ type Comment = {
112115
path?: Array<{
113116
name: string,
114117
scope: Scope
115-
}>
118+
}>,
119+
120+
ignore?: boolean
116121
};
117122

118123
type CommentMembers = {

src/serve/error_page.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ansiHTML.setColors({
2626
* @param error parse or generation error
2727
* @returns {Object} vinyl file object
2828
*/
29-
function errorPage(error: Error) {
29+
function errorPage(error: Error | { codeFrame: string }) {
3030
let errorText = error.toString();
3131
console.error(error);
3232
if (error.codeFrame) {

0 commit comments

Comments
 (0)