We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbe414d commit 04ec846Copy full SHA for 04ec846
1 file changed
README.md
@@ -22,11 +22,11 @@ Calling `Validator.validateAsClass()` allows you to validate any object as if it
22
23
## Installation
24
25
-`npm add joiful`
+`npm add joiful reflect-metadata`
26
27
Or
28
29
-`yarn add joiful`.
+`yarn add joiful reflect-metadata`.
30
31
You must enable experimental decorators and metadata in your TypeScript configuration.
32
@@ -43,6 +43,18 @@ You must enable experimental decorators and metadata in your TypeScript configur
43
44
## Basic Usage
45
46
+Ensure you import `reflect-metadata` as the first import in your application's entry point.
47
+
48
+`index.ts`
49
50
+```typescript
51
+import 'reflect-metadata';
52
53
+...
54
+```
55
56
+Then you can start using joiful like this.
57
58
```typescript
59
import * as jf from 'joiful';
60
0 commit comments