inversify-hooks
Advanced tools
Comparing version 1.3.0 to 1.3.2
export * from 'inversify-props'; | ||
import { useContainer } from './use-service.hook'; | ||
export { useContainer }; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare function useContainer<T>(id: string | symbol): T; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "inversify-hooks", | ||
"version": "1.3.0", | ||
"version": "1.3.2", | ||
"description": "Wrapper of inversify-props to inject your dependencies in the components, made with TypeScript using hooks.", | ||
@@ -25,5 +25,2 @@ "main": "dist/index.js", | ||
], | ||
"peerDependencies": { | ||
"reflect-metadata": "0.1.12" | ||
}, | ||
"dependencies": { | ||
@@ -30,0 +27,0 @@ "inversify-props": "^1.3.0" |
@@ -14,5 +14,23 @@ # Inversify Hooks | ||
``` | ||
npm install --save inversify-hooks reflect-metadata@0.1.12 | ||
$ npm install inversify-hooks reflect-metadata --save | ||
``` | ||
The inversify-hooks type definitions are included in the inversify-hooks npm package. | ||
> :warning: **Important!** inversify-hooks requires TypeScript >= 2.0 and the `experimentalDecorators`, `emitDecoratorMetadata`, `types` and `lib` | ||
compilation options in your `tsconfig.json` file. | ||
```js | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["es6"], | ||
"types": ["reflect-metadata"], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true | ||
} | ||
} | ||
## Usage | ||
@@ -19,0 +37,0 @@ ``` |
@@ -0,0 +0,0 @@ export * from 'inversify-props'; |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ import { container } from 'inversify-props'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6202
1
61