@stompbox/tape-delay 0.0.12 → 0.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.cjs +2 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -25,7 +25,7 @@ var __webpack_exports__ = {};
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
Scope: ()=>Scope,
|
|
28
|
-
inject: ()=>
|
|
28
|
+
inject: ()=>inject,
|
|
29
29
|
injectable: ()=>external_inversify_namespaceObject.injectable,
|
|
30
30
|
TapeDelay: ()=>TapeDelay
|
|
31
31
|
});
|
|
@@ -104,6 +104,7 @@ class TapeDelay {
|
|
|
104
104
|
return container.get(entryName.toString());
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
+
const inject = (entryKey)=>(0, external_inversify_namespaceObject.inject)(entryKey);
|
|
107
108
|
exports.Scope = __webpack_exports__.Scope;
|
|
108
109
|
exports.TapeDelay = __webpack_exports__.TapeDelay;
|
|
109
110
|
exports.inject = __webpack_exports__.inject;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BindInWhenOnFluentSyntax } from "inversify";
|
|
2
|
-
export {
|
|
2
|
+
export { injectable } from 'inversify';
|
|
3
3
|
type Environment = 'test' | 'development' | 'production';
|
|
4
4
|
type ClassEntry<T> = new (...args: any[]) => T;
|
|
5
5
|
type ConstantValueEntry<T> = {
|
|
@@ -27,3 +27,5 @@ export declare class TapeDelay<T extends Entries> {
|
|
|
27
27
|
private container;
|
|
28
28
|
instance: <E extends keyof T>(entryName: E) => EntryType<T[E]>;
|
|
29
29
|
}
|
|
30
|
+
type Keys<T> = T extends TapeDelay<infer GG> ? keyof GG : never;
|
|
31
|
+
export declare const inject: <ContainerType>(entryKey: Keys<ContainerType>) => MethodDecorator & ParameterDecorator & PropertyDecorator;
|
package/dist/index.js
CHANGED