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

Fixing typing issue with ApiCallback where error or result might be null #125

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

Conversation

jondewoo
Copy link

From PlayFabSdk/Scripts/PlayFab/PlayFab.js:

if (replyEnvelope.hasOwnProperty("error") || !replyEnvelope.hasOwnProperty("data")) {
    callback(replyEnvelope, null);
} else {
    callback(null, replyEnvelope);
}

@jondewoo
Copy link
Author

Please consider this PR as the issue is causing errors when strictNullChecks is true in a TypeScript project.

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.

1 participant