Skip to content

Commit

Permalink
Merge pull request #14 from type-injector/bugfix/typescript-backward-…
Browse files Browse the repository at this point in the history
…compatibility

Bugfix/typescript backward compatibility
  • Loading branch information
a-greb authored Oct 10, 2022
2 parents 64f9d8c + 6f61c00 commit bc81e02
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@type-injector/lib",
"version": "1.0.0-beta.2",
"version": "1.0.0-beta.3",
"description": "inject typescript classes recoursively",
"scripts": {
"test": "mocha -r ts-node/register ./src/**/*.spec.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/basic-type-injector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ import { Logger } from './logger';
}

export interface InjectorConfig {
instances?: Map<InjectToken<any>, any> | { [key: DeclaredInjectToken<any>]: any },
factories?: Map<InjectToken<any>, InjectFactory<any>> | { [key: DeclaredInjectToken<any>]: InjectFactory<any> },
instances?: Map<InjectToken<any>, any> | Record<DeclaredInjectToken<any>, any>,
factories?: Map<InjectToken<any>, InjectFactory<any>> | Record<DeclaredInjectToken<any>, InjectFactory<any>>,
}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export * from './inject-factory';
export * from './inject-token';
export * from './injector-scope';
export * from './logger';
export { TypeInjector, type TypeInjectorBuilder } from './type-injector';
export { TypeInjector } from './type-injector';
export type { TypeInjectorBuilder } from './type-injector';

0 comments on commit bc81e02

Please sign in to comment.