PhilanthropyDataCommons / sdk

Instructions and supporting files for SDK generation
GNU Affero General Public License v3.0
1 stars 0 forks source link

Create templates for TypeScript type definitions #2

Closed slifty closed 9 months ago

slifty commented 1 year ago

As part of #1 we know that we at least want to support the generation of Typescript type definitions and type guards based on the swagger specification. This will allow us to at least avoid having to define types / type guards in places like the [front-end repository]().

I'm going to work on this without trying to think about whether the generated type definitions would be appropriate into the backend implementation as well.

slifty commented 1 year ago

swagger-codegen has a few TypeScript templates already (search the linked page for "typescript" to find them). I also asked on their Discussion board about their preferences for upstream contributions.

While we wait I'll start off by creating the templates in here.