TypeScript: properties are always undefined when extending abstract class

Viewed 120

I'm setting up reusable component classes for my REST API controllers, but I cannot seem to get abstract properties working with TypeScript. I've tried a few different approaches and looked through the TS docs, but I haven't found any real solution. All I've found is that abstract properties are really finicky. I'm hoping someone can point out where I'm going wrong with this...

Here is the error I'm seeing: TypeError: Cannot read properties of undefined (reading 'model')

EDIT:

I moved reduced my code to a minimal example and created a GitHub repository: https://github.com/JacobDachenhaus/stackoverflow_05-28-2022_140100

0 Answers
Related