We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.20.0
Angular
0.4.0
The following input
import { Component, Event, EventEmitter } from '@stencil/core'; @Component({ tag: 'test-component', shadow: true, }) export class TestComponent<T> { @Event({ bubbles: false }) missingGenericArgument: EventEmitter<Array<T>>; }
generates the following invalid syntax:
export declare interface TestComponent extends Components.TestComponent { /** * */ missingGenericArgument: EventEmitter<CustomEvent<Array<T>>>; }
One sees that the <T> is only present in the field type definition, and not on the interface definition. This code obviously doesn't compile.
<T>
Code that compiles, so either no <T> anywhere, or <T> on both the field and the interface.
npm install
npm run build
index.ts
https://github.com/staizen-rcomblen/stencil-generic-bug
In parallel, I got the same issue as #283
Thanks @marcincichocki for the sample test repo (I'm pretty new to Stencil, getting an existing project working with Angular).
The text was updated successfully, but these errors were encountered:
Hello @staizen-rcomblen thanks for reporting this issue.
At this time, I do not believe that Stencil natively supports generic types on the component class.
We would need to wait for: ionic-team/stencil#3488 to be reviewed/merged prior to adding support in the output targets.
Sorry, something went wrong.
calciteListOrderChange
No branches or pull requests
Prerequisites
Stencil Version
2.20.0
Stencil Framework Output Target
Angular
Stencil Framework Output Target Version
0.4.0
Current Behavior
The following input
generates the following invalid syntax:
One sees that the
<T>
is only present in the field type definition, and not on the interface definition. This code obviously doesn't compile.Expected Behavior
Code that compiles, so either no
<T>
anywhere, or<T>
on both the field and the interface.Steps to Reproduce
npm install
npm run build
index.ts
Code Reproduction URL
https://github.com/staizen-rcomblen/stencil-generic-bug
Additional Information
In parallel, I got the same issue as #283
Thanks @marcincichocki for the sample test repo (I'm pretty new to Stencil, getting an existing project working with Angular).
The text was updated successfully, but these errors were encountered: