We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When stubbing out the PlayFab SDK for testing, the callback type needs an object that conforms to this interface:
export interface IPlayFabSuccessContainer<TResult extends IPlayFabResultCommon> extends IPlayFabError { data: TResult; }
but IPlayFabResultCommon also extends IPlayFabError. So while I think I should be able to use an object that looks like this:
IPlayFabResultCommon
IPlayFabError
{ code: 200, status: 'OK', error: '', errorCode: 0, errorMessage: '' data: { Data: {} } }
I'm having to build an object that looks like this in order to get Typescript to allow it as a parameter to the ApiCallback function:
{ code: 200, status: 'OK', error: '', errorCode: 0, errorMessage: '' data: { code: 200, status: 'OK' error: '', errorCode: 0, errorMessage: '', Data: {} } }
Also, shouldn't the error, errorCode, and errorMessage properties be optional? Those are not returned when the call is successful.
error
errorCode
errorMessage
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When stubbing out the PlayFab SDK for testing, the callback type needs an object that conforms to this interface:
but
IPlayFabResultCommon
also extendsIPlayFabError
. So while I think I should be able to use an object that looks like this:I'm having to build an object that looks like this in order to get Typescript to allow it as a parameter to the ApiCallback function:
Also, shouldn't the
error
,errorCode
, anderrorMessage
properties be optional? Those are not returned when the call is successful.The text was updated successfully, but these errors were encountered: