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

Make ESService support static props #193

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

freshgum-bubbles
Copy link
Owner

@freshgum-bubbles freshgum-bubbles commented Aug 3, 2024

ESService does not support static properties or methods, as the types are broken. This change fixes that issue by refactoring the generic types that the ESService function accepts.

Fixes #194

Copy link

changeset-bot bot commented Aug 3, 2024

🦋 Changeset detected

Latest commit: c247207

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@freshgum/typedi Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@freshgum-bubbles freshgum-bubbles added bug Something isn't working bugfix A fix for a bug introduced by another change / existing code and removed bug Something isn't working labels Aug 3, 2024
@freshgum-bubbles freshgum-bubbles force-pushed the fix/esservice-support-static-properties branch 2 times, most recently from 0f6da87 to a3825b7 Compare August 4, 2024 00:42
@freshgum-bubbles freshgum-bubbles marked this pull request as ready for review August 4, 2024 00:56
@freshgum-bubbles freshgum-bubbles force-pushed the fix/esservice-support-static-properties branch from 01e48f4 to 788399b Compare August 4, 2024 00:57
Change the types to stop expecting the options to be
of type ServiceOptions<Constructable<Constructable<T>>,
as most users don't want to wrap constructables twice
(lame, right).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix A fix for a bug introduced by another change / existing code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

ESService doesn't support static properties and methods
1 participant