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

Provide better decorator signatures #1591

Open
1 task done
notaphplover opened this issue Oct 22, 2024 · 0 comments
Open
1 task done

Provide better decorator signatures #1591

notaphplover opened this issue Oct 22, 2024 · 0 comments
Assignees

Comments

@notaphplover
Copy link
Member

Is there an existing proposal similar to this?

  • I have searched the existing proposals

What are you proposing?

Inversify decorators should rely on PropertyDecorator, ParameterDecorator and ClassDecorator.

Inversify hybrid decorators such as inject (which is at the same time a ParameterDecorator and PropertyDecorator) should provide overloaded signatures. This way decorators would provide cleaner method signatures than the existing ones.

Is there any specific group of users that will benefit from this?

Every inversify user.

What problems are you trying to solve?

Relying on typescript types should help us providing cleaner contracts and hopefully, the next major ts version won't break decorator signatures again.

Do you have any references or examples that can illustrate your idea?

What type of idea is this?

Innovation: No similar idea exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Draft
Development

No branches or pull requests

2 participants