The two statements below seem to be equivalent to me, but one of them triggers a linting warning from TSLint in VSCode. Why?
const task: Task | undefined = this.