Skip to content

add strict null check#8

Open
michael8090 wants to merge 4 commits intojf3096:masterfrom
michael8090:master
Open

add strict null check#8
michael8090 wants to merge 4 commits intojf3096:masterfrom
michael8090:master

Conversation

@michael8090
Copy link
Copy Markdown

No description provided.

class Student {
@JsonProperty('name')
fullName: string;
fullName?: string;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why do these properties need to be made optional?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

As shown below, it's assigned with undefined, which could not pass the strict null checking:

image

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍 good to go. Thanks!

@evergreen-lee-campbell
Copy link
Copy Markdown

Are there any plans for merging this PR in?

@theBull
Copy link
Copy Markdown

theBull commented Sep 21, 2018

@michael8090 are you able to merge?

@michael8090
Copy link
Copy Markdown
Author

@theBull No, I've no write access

@theBull
Copy link
Copy Markdown

theBull commented Sep 27, 2018

@jf3096 would you be willing to merge this change?

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