tannerntannern / ts-mixer

A small TypeScript library that provides tolerable Mixin functionality.
MIT License
379 stars 27 forks source link

Type 'className' is missing the following properties from type 'IWorkerItem': init, postProcess, needProcess #55

Open Volna13 opened 1 year ago

Volna13 commented 1 year ago

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.

Volna13 commented 1 year ago

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)

tannerntannern commented 1 year ago

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.