-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Even more fixes for documentation checks
Resolves #1898
- Loading branch information
Showing
8 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** I am documented, but the validator thinks otherwise. */ | ||
export type FunctionType = (foo: string) => string; | ||
|
||
export type UnDocFn = (foo: string) => string; | ||
|
||
/** This docblock works fine. */ | ||
export class ExampleClass { | ||
/** This wrongly complains about not being documented */ | ||
[Symbol.iterator]() { | ||
return { | ||
/** This also says it's not documented. */ | ||
index: 0, | ||
/** This one too. */ | ||
next(): IteratorResult<number> { | ||
return { done: false, value: this.index++ }; | ||
}, | ||
}; | ||
} | ||
|
||
/** | ||
* @hidden | ||
*/ | ||
[Symbol.asyncIterator]() { | ||
return { | ||
// This does _not_ complain, which is what I would expect. | ||
index: 0, | ||
// Even though it's not rendered in the final docs, it still complains | ||
// that this isn't documented. | ||
async next(): Promise<IteratorResult<number>> { | ||
return { done: false, value: this.index++ }; | ||
}, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters