Skip to content
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

Improve ES6 support in TypeScript definitions generation #21460

Merged
merged 1 commit into from
Mar 5, 2024

Commits on Mar 2, 2024

  1. Improve ES6 support in TypeScript definitions generation

    Users building with --emit-tsd and the EXPORT_ES6 setting should get
    TypeScript definitions accounting for the fact that ES6 modules
    include a default export that is a functor to instantiate and access
    the wasm module in question
    
    When generating TS definitions, query the EXPORT_ES6 setting and,
    if present, add the appropriate exports to the output
    
    Include options param in default functor export for `--emit-tsd`.
    This serves as a starting point for incluing all options such as
    `locateFile` (and the slew of others), without requiring manually
    iterating through them
    
    Update tests to include factory function
    jnickg committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    c19e28c View commit details
    Browse the repository at this point in the history