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

'listPrinters', which lacks return-type annotation, implicitly has an 'any' return type. #35

Open
ayubUOL opened this issue Dec 27, 2022 · 3 comments

Comments

@ayubUOL
Copy link

ayubUOL commented Dec 27, 2022

`Error: node_modules/thermal-printer-cordova-plugin/src/definitions.ts:56:3 - error TS7010: 'listPrinters', which lacks return-type annotation, implicitly has an 'any' return type.

56 listPrinters(data: { type: 'bluetooth' | 'usb'; }, success: (value: Printer[]) => any, error: (value: ErrorResult) => void);`

@shajeermhmmd
Copy link

Helloo... same error here... did you find any solution for this?

@ayubUOL
Copy link
Author

ayubUOL commented Jan 4, 2023

@shajeermhmmd I didn't find any solution to this problem but I'm using different plugin it's https://github.com/Ans0n-Ti0/esc-pos-encoder-ionic-demo

@shajeermhmmd
Copy link

shajeermhmmd commented Jan 21, 2023

I solved this issue by adding the following to tsconfig.json file

"compilerOptions": {
.....
.....
"noImplicitAny": false,
.....
....
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants