DEV Community

TK
TK

Posted on

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)