Repository navigation
Enable strict-null-checks for api-extractor - #442
Merged
Merged
Conversation
Pete Gonzalez (octogonz)
requested review from
Ian Clanton-Thuon (iclanton) and
QZ (qz2017)
November 15, 2017 02:11
QZ (qz2017)
reviewed
Nov 15, 2017
| private _completeLinks(): void { | ||
| while (this.incompleteLinks.length) { | ||
| const codeLink: IMarkupApiLink = this.incompleteLinks.pop(); | ||
| for ( ; ; ) { |
Contributor
There was a problem hiding this comment.
for ( ; ; ) [](start = 4, length = 11)
This is dangerous. Can you add an end condition?
Collaborator
Author
There was a problem hiding this comment.
The end condition is on line 383.
I can change it to while (true) if you don't like the for (;;) notation. I will need to disable a tslint rule.
In reply to: 151211677 [](ancestors = 151211677)
QZ (qz2017)
reviewed
Nov 15, 2017
| private _completeInheritdocs(warnings: string[]): void { | ||
| while (this.incompleteInheritdocs.length) { | ||
| const token: Token = this.incompleteInheritdocs.pop(); | ||
| for ( ; ; ) { |
Contributor
There was a problem hiding this comment.
for ( ; ; ) [](start = 4, length = 11)
Same.
Collaborator
Author
|
I validated that all the sp-client projects build with these api-extractor changes. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Turn on the strict-null-checks setting in tsconfig.json.