Skip to content

[interop] Add Support for Function Declarations #392

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

nikeokoronkwo
Copy link
Contributor

@nikeokoronkwo nikeokoronkwo commented Jun 19, 2025

Fixes #389

This PR adds support for TS function declarations, including:

  • Basic function syntax, including parameters
  • Variardic arguments
  • Optional arguments
  • Generics, including type parameters
  • Function overloading

This PR also adds support for builtin core types (specifically JSArray and JSPromise, used as examples in the integration test suite).

@nikeokoronkwo nikeokoronkwo marked this pull request as ready for review June 20, 2025 02:46
Copy link
Contributor

@srujzs srujzs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, cool to see methods being generated!

@nikeokoronkwo nikeokoronkwo requested a review from srujzs June 26, 2025 21:21
Copy link
Contributor

@srujzs srujzs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving PrimitiveType to static members makes this read a lot cleaner!

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

Successfully merging this pull request may close these issues.

Interop Gen: Support Function Declarations
2 participants