Skip to content

Commit

Permalink
Set experimentalDecorators to true for Deno decorators support
Browse files Browse the repository at this point in the history
[Deno 1.40](https://deno.com/blog/v1.40) introduced support for TC39 stage 3 decorators. Causing following issue:

From mentioned release blog post:
> If you rely on the legacy “experimental TypeScript decorators”, you can still use them with the following configuration:

```json 
{
  "compilerOptions": {
    "experimentalDecorators": true
  }
}
```
  • Loading branch information
fecony authored Feb 21, 2024
1 parent 136a26c commit 718cd93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
}
},
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},
"importMap": "./import_map.json",
Expand Down

0 comments on commit 718cd93

Please sign in to comment.