cmudig / apigen

API Generator from TypeScript
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Requirements #3

Open srizvi6 opened 1 year ago

srizvi6 commented 1 year ago

Starting this issue to list down requirements for the generator. Feel free to add/critique.

The generator shall convert interface declarations to class declarations. The generator should convert type declarations into class declarations that can produce code to create objects. The generator shall handle union types. The generator shall produce APIs in Python and Typescript. The generator shall be able to handle optional members. The generator shall be able to recognize if there are nested types and generate code that creates objects for those. The generator shall handle recursive types. The generator shall have unit tests written in Jest that test its functionality.