Skip to content

Commit

Permalink
style(ci): format changelog with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
freshgum-bubbles committed Nov 29, 2023
1 parent 464c8e4 commit e7a1637
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .changeset/forty-experts-retire.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
**We now support ES decorators**! Grab the new ESService decorator from contrib/es!

To use this, you'll need to disable `experimentalDecorators` in your TypeScript
configuration file. Note that, by doing this, you won't be able to utilise the
configuration file. Note that, by doing this, you won't be able to utilise the
legacy decorators included in the package (`Service`).

Here's an example:

```ts
import { ESService } from '@freshgum/typedi/contrib/es';

@ESService([ ])
export class MyService { }
@ESService([])
export class MyService {}
```

Note that the **legacy decorators have not been removed** for backwards-compatibility
reasons: you're still able to use them just as before.

Many thanks to Axel Rauschmayer for providing
[a very detailed guide re: ES decorators](https://2ality.com/2022/10/javascript-decorators.html).
[a very detailed guide re: ES decorators](https://2ality.com/2022/10/javascript-decorators.html).

0 comments on commit e7a1637

Please sign in to comment.