Skip to content

Commit

Permalink
fix(exports): add back createBuildResolver and createDisposableResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffijoe committed Apr 4, 2024
1 parent 8640935 commit 35d0142
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
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

0 comments on commit 35d0142

Please sign in to comment.