Type 'className' is missing the following properties from type 'IWorkerItem': init, postProcess, needProcess
Volna13 opened this issue · 2 comments
I managed to set up your library, but for some reason I get an error that some methods are not described in the classes (they should not be described, since I expect that they will be used from the parent class)
error TS2739: Type 'NinjaOneDeviceWorkerItem' is missing the following properties from type 'IWorkerItem': init, postProcess, needProcess
Here is the class that Mixin uses (it extends NinjaOneWorkerItem and DeviceWorkerItem)
Here is NinjaOneWorkerItem which extends WorkerItem (parent)
Here is DeviceWorkerItem which also extends WorkerItem (parent)
And here is parent WorkerItem (which contain default init, postProcess, needProcess)
I have no idea what it could be related to.
I asked another dev team to run npm run build (tsc) and he gets the same error as gitlab ci (error TS2739: Type 'NinjaOneDeviceWorkerItem' is missing the following properties from type 'IWorkerItem': init, postProcess, needProcess)
Please provide a minimal reproducible example repository if you expect me to troubleshoot this. I'm not going to manually type out the code in these screenshots and hope I can reproduce the same error you have on your machine. There are a million things outside these screenshots that could be causing the errors you're seeing and I can't just guess what those might be.