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 back createBuildResolver and createDisposableResolver #358

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v10.0.2

- Add back `createBuildResolver` and `createDisposableResolver` exports ([#358](https://github.com/jeffijoe/awilix/pull/358))

# v10.0.1

- Add back some type exports ([#351](https://github.com/jeffijoe/awilix/pull/351))
Expand Down
2 changes: 2 additions & 0 deletions src/awilix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ export {
asClass,
asFunction,
asValue,
createBuildResolver,
createDisposableResolver,
} from './resolvers'
4 changes: 2 additions & 2 deletions src/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export function aliasTo<T>(
* @return {object}
* The interface.
*/
function createBuildResolver<T, B extends Resolver<T>>(
export function createBuildResolver<T, B extends Resolver<T>>(
obj: B,
): BuildResolver<T> & B {
function setLifetime(this: any, value: LifetimeType) {
Expand Down Expand Up @@ -285,7 +285,7 @@ function createBuildResolver<T, B extends Resolver<T>>(
* function.
* @param obj
*/
function createDisposableResolver<T, B extends Resolver<T>>(
export function createDisposableResolver<T, B extends Resolver<T>>(
obj: B,
): DisposableResolver<T> & B {
function disposer(this: any, dispose: Disposer<T>) {
Expand Down
Loading