I have the leafgarland-vim plugin installed , and when I save the .ts file, I always get this warning:

I tried adding let g:typescript_compiler_options="--experimentalDecorators"~ / .vimrc to my, and I also entered this command from within vim after the first input of ":". I can even do it :echo g:typescript_compiler_optionsand it returns --experimentalDecorators. But every time I go to save, I get this error.
How can I make this error go away? --experimentalDecoratorsjust doesn't do its job.
edit
I tried this from inside vim::
let g: typescript_compiler_options = '--dnwejuidbnwejudbn'
And the code is still compiled with the same warning. I don't think let g: typescript_compiler_options actually does anything.
edit2:

Edit3:
Meanwhile, this hack gets rid of the warning:

source
share