Compiler options: "noUnusedLocals": true, "noUnusedParameters": true, are not functioning properly within functions. An error is encountered in the following example:
export class AllReduxSagas {
[ts] Property 'someService' is declared but its value is never read.
constructor(private someService: SomeService) {}
watchSaga = function* watchSaga() {
yield takeEvery(ACTION_TYPE.SOME_ACTION, this.someSaga, this.someService);
};
...
}
The compiler does not recognize 'someService', however, everything works fine when the compiler options mentioned above are removed. What causes this issue, and how can it be resolved?