DEV Community

TK
TK

Posted on

2 1

How to use decorator in typescript

If you want to use decorator in typescript, I recommand you below tsconfig.json settings/

{
    "compilerOptions": {
        // Decorator settings
        "experimentalDecorators": true,
        "strictPropertyInitialization": false
    }
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay