Skip to content

Enable strict-null-checks for api-extractor - #442

Merged
Pete Gonzalez (octogonz) merged 2 commits into
masterfrom
pgonzal/ae-strict-null-checks
Nov 15, 2017
Merged

Pete Gonzalez (octogonz) merged 2 commits into
masterfrom
pgonzal/ae-strict-null-checks

Conversation

@octogonz

Copy link
Copy Markdown
Collaborator

Turn on the strict-null-checks setting in tsconfig.json.

private _completeLinks(): void {
while (this.incompleteLinks.length) {
const codeLink: IMarkupApiLink = this.incompleteLinks.pop();
for ( ; ; ) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for ( ; ; ) [](start = 4, length = 11)

This is dangerous. Can you add an end condition?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

private _completeInheritdocs(warnings: string[]): void {
while (this.incompleteInheritdocs.length) {
const token: Token = this.incompleteInheritdocs.pop();
for ( ; ; ) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for ( ; ; ) [](start = 4, length = 11)

Same.

@qz2017 QZ (qz2017) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕐

@qz2017 QZ (qz2017) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@octogonz

Copy link
Copy Markdown
Collaborator Author

I validated that all the sp-client projects build with these api-extractor changes.

@octogonz
Pete Gonzalez (octogonz) merged commit 951297f into master Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants