In my opinion, this is a completely unnecessary feature in TypeScript. To disable it, you need to change the file tsconfig.json
:
"compilerOptions": {
// ...
"noPropertyAccessFromIndexSignature": false,
// ...
}
In my opinion, this is a completely unnecessary feature in TypeScript. To disable it, you need to change the file tsconfig.json
:
"compilerOptions": {
// ...
"noPropertyAccessFromIndexSignature": false,
// ...
}