thrift-typescript icon indicating copy to clipboard operation
thrift-typescript copied to clipboard

Generate TypeScript from Thrift IDL files

Results 33 thrift-typescript issues
Sort by recently updated
recently updated
newest added

BACKGROUND Two kinds of exceptions can be thrown by a handler processing a Thrift request: - Those that are defined as `exceptions` in a .thrift file. The server serializes them...

Currently, this library generates exception objects as regular thrift structs which do not extend Error. This is problematic because it doesn't have a stack trace, and behaves weirdly for frameworks...

I have a service that can throw two different exceptions: ``` service Whatever { exception ExceptionA {} exception ExceptionB {} void doSomething() throws (1: ExceptionA exceptionA, 2: ExceptionB exceptionB) }...

The initializer arrays for generated map constants don't always type check correctly. Basically the issue happens when the inferred type of 2 map entries are different ```ts const map: Map

Recursively resolve and parse included files.

I have tried installing thrift-typescript on macOS and cannot get it to run on the command line. Repro: clone repo npm install npm run build thrift-typescript >command not found I...

When I try to run the following code it throws an error: ```js import { make } from '@creditkarma/thrift-typescript'; make(`namespace java com.my.service namespace js thrift struct Response { 1: string...

Strict unions create a lot of new exported type names. This can cause name conflicts when they are imported into the index file. The specific case I am running into...

Noticed a memory leak when trying to use the `thrift-typescript` generated classes (`--target apache` with the apache `thrift` library's thrift client. The issue is https://github.com/apache/thrift/blob/234e80e1b9acb1bc778c7adfaa6cb695d922d5f0/lib/nodejs/lib/thrift/connection.js#L125 which injects an entry (with...