Skip to content

Integrating ts-to-python into webtypy #25

@simonegiacomelli

Description

@simonegiacomelli

Hey @hoodmane,

referencing issue webtypy/13 I was wondering what you think of the following idea.

  • Export ConversionResult in json; so we have the ts declaration files IR
  • Import the ConversionResult.json file in webtypy
  • Perform the processing of ConversionResult.json and webidl(s) in Python to get the best of both worlds

I landed at this sketch because I didn't find any suitable TypeScript parser 'natively' available in Python.

I will send you a pull request, just to give you a better idea of what I'm talking about.
I didn't look into the ts-to-python sources too much; maybe the export could be done in a different way or in a better place?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions