Skip to content
This repository has been archived by the owner on Jun 15, 2020. It is now read-only.

Missing Interface names in generated d.ts file #10

Open
OwenOrsini opened this issue Jun 7, 2016 · 2 comments
Open

Missing Interface names in generated d.ts file #10

OwenOrsini opened this issue Jun 7, 2016 · 2 comments
Labels

Comments

@OwenOrsini
Copy link

When generating the types for a proto file that has extensions that reference the message that extends the generated typescript contains errors and I'm unable to include the types in my ts scripts.

I've included a simple .proto the json from the proto file and the generated types
test_generation.zip

@fungiboletus
Copy link
Member

Hi. I unfortunately don't have time to investigate and fix the problem now. Maybe someone else has a solution.

@OwenOrsini
Copy link
Author

Looks like the problem is that the json message object created for an extension has a 'ref' property but no 'name' property which is what the Dust.js template is looking for.

The quick fix is the add the 'name' property with the value of the 'ref' property. I'd make a pull request if I had permissions on github

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants