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

Add type option in enum generate like interface or class #20667

Closed
1 of 15 tasks
mephistorine opened this issue Apr 30, 2021 · 2 comments · Fixed by #20670
Closed
1 of 15 tasks

Add type option in enum generate like interface or class #20667

mephistorine opened this issue Apr 30, 2021 · 2 comments · Fixed by #20670
Labels
area: @schematics/angular freq1: low Only reported by a handful of users who observe it rarely good first issue type: bug/fix
Milestone

Comments

@mephistorine
Copy link
Contributor

🚀 Feature request

Command

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Description

When i generate enum ng generate enum NotificationType i get file name notification-type.enum.ts.

Describe the solution you'd like

I can't get rid of the ".enum" part in the filename and a parameter to control it — no. Interface or class have option type, probably could add the same option in enum generation.

@alan-agius4 alan-agius4 added area: @schematics/angular freq1: low Only reported by a handful of users who observe it rarely good first issue type: bug/fix labels Apr 30, 2021
@ngbot ngbot bot modified the milestone: needsTriage Apr 30, 2021
@mephistorine
Copy link
Contributor Author

@alan-agius4 i create PR #20670 for this issue

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @schematics/angular freq1: low Only reported by a handful of users who observe it rarely good first issue type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants