freshgum-bubbles / typedi

Elegant Dependency Injection in TypeScript and JavaScript.
http://typedi.js.org/
MIT License
53 stars 3 forks source link

Replace Lazy with LazyRef #141

Open freshgum-bubbles opened 1 year ago

freshgum-bubbles commented 1 year ago

Replace the useless Lazy function with a new LazyRef function in contrib.

Unlike Lazy, the LazyRef function is actually... well, lazy -- it creates a reference host, much like TransientRefHost, which allows for creating an instance of the given reference at any time.

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: c8889a9d72b4040f0db9bc4a7d55b261186253ac

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