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

Lines changed: 7 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy