inversify-hooks
Advanced tools
Comparing version
@@ -1,3 +0,3 @@ | ||
import { cid, container, Container, Inject, inject, injectable } from 'inversify-props'; | ||
import { cid, container, Container, Inject, inject, injectable, mockInject, mockRequest, mockSingleton, mockTransient } from 'inversify-props'; | ||
declare function useInject<T>(id: string | symbol): [T]; | ||
export { useInject, container, Inject, inject, injectable, Container, cid }; | ||
export { useInject, container, Inject, inject, injectable, Container, cid, mockInject, mockRequest, mockSingleton, mockTransient }; |
@@ -10,2 +10,6 @@ "use strict"; | ||
exports.injectable = inversify_props_1.injectable; | ||
exports.mockInject = inversify_props_1.mockInject; | ||
exports.mockRequest = inversify_props_1.mockRequest; | ||
exports.mockSingleton = inversify_props_1.mockSingleton; | ||
exports.mockTransient = inversify_props_1.mockTransient; | ||
function useInject(id) { | ||
@@ -12,0 +16,0 @@ return [inversify_props_1.container.get(id)]; |
export {}; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "inversify-hooks", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "Wrapper of inversify-props to inject your dependencies in the components, made with TypeScript using hooks.", | ||
@@ -27,5 +27,5 @@ "main": "dist/index.js", | ||
"@types/react": "^16.8.7", | ||
"inversify-props": "^1.4.5", | ||
"inversify-props": "^1.4.7", | ||
"react": "^16.8.4" | ||
} | ||
} |
@@ -0,0 +0,0 @@ # Inversify Hooks |
@@ -1,2 +0,2 @@ | ||
import { cid, container, Container, Inject, inject, injectable } from 'inversify-props'; | ||
import { cid, container, Container, Inject, inject, injectable, mockInject, mockRequest, mockSingleton, mockTransient } from 'inversify-props'; | ||
@@ -7,3 +7,3 @@ function useInject<T>(id: string | symbol): [T] { | ||
export { useInject, container, Inject, inject, injectable, Container, cid }; | ||
export { useInject, container, Inject, inject, injectable, Container, cid, mockInject, mockRequest, mockSingleton, mockTransient }; | ||
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
7816
10.13%56
7.69%Updated