thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sautter (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (THRIFT-3992) Typescript Definitions of asnyc jqRequest-functions return void instead of jqPromise
Date Sat, 03 Dec 2016 12:47:58 GMT

     [ https://issues.apache.org/jira/browse/THRIFT-3992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Sautter closed THRIFT-3992.
---------------------------------
    Resolution: Invalid

Searching in the compiler source code I found out, that there is an option to do:
"thrift -r --gen js:ts,jquery"
which resolves this issue.

I did not see that in the documentation...

> Typescript Definitions of asnyc jqRequest-functions return void instead of jqPromise
> ------------------------------------------------------------------------------------
>
>                 Key: THRIFT-3992
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3992
>             Project: Thrift
>          Issue Type: Bug
>          Components: JavaScript - Compiler, TypeScript - Library
>    Affects Versions: 0.9.3
>            Reporter: David Sautter
>            Priority: Blocker
>
> Scenario: Typescript with Thrift in the browser (-> needs async functions to work)
> Compilation itself is a bit odd, you need to overwrite:
>  1. thrift -r --gen js:ts
>  2. thrift -r --gen js:jquery
> Async ts-function-defintions are generated, but they have return type "void" instead
of "jqPromise<UserDefinedType>"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message