Skip to content

Commit

Permalink
docs(component): added required tsconfig switches for @AutoMap (#309)
Browse files Browse the repository at this point in the history
added required decorators metadata swithces that must be enabled on tsconfig, when using @AutoMap

fix #307
  • Loading branch information
robsonhermes authored Jun 26, 2021
1 parent 4fe0f45 commit 7d6ab91
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs-site/docs/getting-started/introduce-to-automapper.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ yarn add @automapper/{core,classes}
yarn add -D @automapper/types
```


## Enable decorators metadata

Make sure the following decorator switches are on in your `tsconfig`:

```json
"experimentalDecorators": true,
"emitDecoratorMetadata": true
```

## Create a `Mapper`

In some separate file called `mapper.ts`, we will start initializing our `Mapper`
Expand Down

0 comments on commit 7d6ab91

Please sign in to comment.