Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add strict null check #8

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

michael8090
Copy link

No description provided.

@@ -4,10 +4,10 @@ import dateConverter from './common/dateconverter'

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

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
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

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

Are there any plans for merging this PR in?

@theBull
Copy link

theBull commented Sep 21, 2018

@michael8090 are you able to merge?

@michael8090
Copy link
Author

@theBull No, I've no write access

@theBull
Copy link

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