You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,16 +25,16 @@ First install the required packages via:
25
25
npm install typedi reflect-metadata
26
26
```
27
27
28
-
Import the `reflect-metadata` package in the **first line** of your application:
28
+
Import the `reflect-metadata` package at the **first line** of your application:
29
29
30
30
```ts
31
31
import'reflect-metadata';
32
32
33
33
// Your other imports and initialization code
34
-
// comes here after you imported reflect-metadata package!
34
+
// comes here after you imported the reflect-metadata package!
35
35
```
36
36
37
-
Enable emitting decorator metadata in your Typescript config, add these two lines to your `tsconfig.json` file:
37
+
As a last step, you need to enable emitting decorator metadata in your Typescript config. Add these two lines to your `tsconfig.json` file under the `compilerOptions` key:
38
38
39
39
```json
40
40
"emitDecoratorMetadata": true,
@@ -82,3 +82,7 @@ The detailed usage guide and API documentation for the project can be found:
0 commit comments