@stompbox/tape-delay 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { BindInWhenOnFluentSyntax } from "inversify";
|
|
2
2
|
export { injectable } from 'inversify';
|
|
3
|
+
/**
|
|
4
|
+
* Current active application environment.
|
|
5
|
+
*/
|
|
3
6
|
type Environment = 'test' | 'development' | 'production';
|
|
4
7
|
type ClassEntry<T> = new (...args: any[]) => T;
|
|
5
8
|
type ConstantValueEntry<T> = {
|
|
@@ -157,5 +160,5 @@ export declare class TapeDelay<T extends Entries> {
|
|
|
157
160
|
private container;
|
|
158
161
|
instance: <E extends keyof T>(entryName: E) => EntryType<T[E]>;
|
|
159
162
|
}
|
|
160
|
-
type Keys<T> = T extends TapeDelay<infer
|
|
163
|
+
type Keys<T> = T extends TapeDelay<infer ContainerEntries> ? keyof ContainerEntries : never;
|
|
161
164
|
export declare const inject: <ContainerType>(entryKey: Keys<ContainerType>) => MethodDecorator & ParameterDecorator & PropertyDecorator;
|