I have JS project where I want to add TS annotations and emit declarations. tl;dr:
{
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
"allowJs": true,
"checkJs": true
}
}
When I run tsc the first time, all is good. *.d.ts are created next to the JS files. However, when I run again, the declarations are not updated. Why?