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

fix(lazy): adjust the type of defineCustomElements #4592

Merged
merged 1 commit into from
Jul 19, 2023

Commits on Jul 19, 2023

  1. fix(lazy): adjust the type of defineCustomElements

    This fixes an issue with the type for `defineCustomElements` that we set
    in output-lazy-loader.ts. In #4419 we changed the return type of the
    function to be `void` (at runtime) but we didn't make a corresponding
    adjustment to the type declaration for the function that we generate
    here:
    
    https://github.com/ionic-team/stencil/blob/7d5dc6cf5e0d2020c513cc87b6b2e5b93eece9bc/src/compiler/output-targets/output-lazy-loader.ts#L88
    
    This change adjusts that type declaration to have a `void` return value,
    instead of `Promise<void>`.
    
    See #4589 for more context
    alicewriteswrongs committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    b37afd2 View commit details
    Browse the repository at this point in the history