Skip to content

Commit acd0e1b

Browse files
JavaScriptSDK Change return type to Promise (#831)
1 parent 4d57901 commit acd0e1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/javascript/templates/PlayFab_Api.d.ts.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ declare module PlayFab<%- api.name %>Module {
99

1010
<% for(var cIdx in api.calls) { var apiCall = api.calls[cIdx];
1111
%><%- generateApiSummary(" ", apiCall, "summary", "https://docs.microsoft.com/rest/api/playfab/" + api.name.toLowerCase() + "/" + apiCall.subgroup.toLowerCase().replaceAll(" ","-") + "/" + apiCall.name.toLowerCase())
12-
%> <%- apiCall.name %>(request: PlayFab<%- api.name %>Models.<%- apiCall.request %>, callback: PlayFabModule.ApiCallback<PlayFab<%- api.name %>Models.<%- apiCall.result %>>, customData?: any, extraHeaders?: { [key: string]: string }): void;
12+
%> <%- apiCall.name %>(request: PlayFab<%- api.name %>Models.<%- apiCall.request %>, callback: PlayFabModule.ApiCallback<PlayFab<%- api.name %>Models.<%- apiCall.result %>>, customData?: any, extraHeaders?: { [key: string]: string }): Promise<PlayFabModule.ApiCallback<PlayFab<%- api.name %>Models.<%- apiCall.result %>>>;
1313
<% } %>
1414
}
1515
}

0 commit comments

Comments
 (0)