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

[Bug] ember g component-class foo does not generate a component signature in a TypeScript project #20598

Closed
bertdeblock opened this issue Dec 12, 2023 · 0 comments · Fixed by #20645

Comments

@bertdeblock
Copy link
Member

🐞 Describe the Bug

ember g component-class foo does not generate a component signature in a TypeScript project.

🔬 Minimal Reproduction

Run ember g component-class foo in a TS project.

😕 Actual Behavior

import Component from '@glimmer/component';

export default class FooComponent extends Component {}

🤔 Expected Behavior

import Component from '@glimmer/component';

interface FooSignature {
  // The arguments accepted by the component
  Args: {};
  // Any blocks yielded by the component
  Blocks: {
    default: []
  };
  // The element to which `...attributes` is applied in the component template
  Element: null;
}

export default class FooComponent extends Component<FooSignature> {}

🌍 Environment

  • Ember: 5.4
  • Node.js/npm: /
  • OS: /
  • Browser: /

➕ Additional Context

/

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