paystory-de / thermal-printer-cordova-plugin

Cordova wrapper for ESC/POS Thermal Printer library
Apache License 2.0
49 stars 33 forks source link

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

Open ayubUOL opened 1 year ago

ayubUOL commented 1 year ago

`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 commented 1 year ago

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

ayubUOL commented 1 year ago

@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 commented 1 year ago

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

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