Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Patch Available
Description
The aysnc callbacks provided for typescript do not provide complete information for the objects being returned. Example:
GetOwnInfo(): UserInfo; GetOwnInfo(callback: Function): JQueryXHR;
Both the Function and JQueryXHR do not provide type information about UserInfo.
The proposed fix is to have it generate the following:
GetOwnInfo(): UserInfo; GetOwnInfo(callback: (data: UserInfo)=>void): JQueryPromise<UserInfo>;
I have submitted a pull request here: https://github.com/apache/thrift/pull/1310
Attachments
Issue Links
- links to