tannerntannern/ts-mixer

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
image

Here is the class that Mixin uses (it extends NinjaOneWorkerItem and DeviceWorkerItem)
Снимок экрана 2023-01-18 в 11 44 50

Here is NinjaOneWorkerItem which extends WorkerItem (parent)
image

Here is DeviceWorkerItem which also extends WorkerItem (parent)
image

And here is parent WorkerItem (which contain default init, postProcess, needProcess)
image

and interface for WorkerItem
image

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.