Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/bitrinjani/castable
Browse files Browse the repository at this point in the history
  • Loading branch information
bitrinjani committed Feb 6, 2018
2 parents f92179f + 56f645d commit 109f38a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ Supported types:
npm install @bitr/castable
```

and set tsconfig ``emitDecoratorMetadata``.
```json
{
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true
}
}
```

# Usage
1. Extend Castable
2. Add `@cast` decorator to primitive type field (string, number, boolean)
Expand Down

0 comments on commit 109f38a

Please sign in to comment.