Array.prototype.find must return T | undefined.
But for some reason in my (automatically generated NestJS) environment TypeScript implicitly has only T as the return type of such methods.
How should I make TypeScript automatically inferr that find must return T | undefined?