Skip to content

Commit

Permalink
prevent bugs in some typescript versions (stencil)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuel Hein committed Oct 10, 2022
1 parent 64f9d8c commit e0fd1cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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 e0fd1cc

Please sign in to comment.