Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Volna13 opened this issue Jan 18, 2023 · 2 comments
Labels
question Further information is requested

Comments

@Volna13
Copy link

Volna13 commented Jan 18, 2023

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
Copy link
Author

Volna13 commented Jan 18, 2023

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
Copy link
Owner

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.

@tannerntannern tannerntannern added the question Further information is requested label Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants