From a17dba1f8b6570d76d5c8a30f437edb2dca9abea Mon Sep 17 00:00:00 2001 From: "J. Chris Tyler" Date: Sat, 2 Apr 2022 12:33:13 -0500 Subject: [PATCH] feat(star-prnt): allow null port for print methods and openCashDrawer (#4095) --- .../plugins/star-prnt/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/@awesome-cordova-plugins/plugins/star-prnt/index.ts b/src/@awesome-cordova-plugins/plugins/star-prnt/index.ts index 495f3454a..93825d950 100644 --- a/src/@awesome-cordova-plugins/plugins/star-prnt/index.ts +++ b/src/@awesome-cordova-plugins/plugins/star-prnt/index.ts @@ -880,7 +880,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin { * @returns {Promise} Success! if printed correctly or error message string returned by the SDK. */ @Cordova() - printRawText(port: string, emulation: string, printObj: PrintObj): Promise { + printRawText(port: string|null, emulation: string, printObj: PrintObj): Promise { return; } @@ -893,7 +893,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin { * @returns {Promise} Success! if printed correctly or error message string returned by the SDK. */ @Cordova() - printRasterReceipt(port: string, emulation: string, rasterObj: RasterObj): Promise { + printRasterReceipt(port: string|null, emulation: string, rasterObj: RasterObj): Promise { return; } @@ -906,7 +906,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin { * @returns {Promise} Success! if printed correctly or error message string returned by the SDK. */ @Cordova() - printImage(port: string, emulation: string, imageObj: ImageObj): Promise { + printImage(port: string|null, emulation: string, imageObj: ImageObj): Promise { return; } @@ -918,7 +918,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin { * @returns {Promise} Success! if opened or error message string returned by the SDK. */ @Cordova() - openCashDrawer(port: string, emulation: string): Promise { + openCashDrawer(port: string|null, emulation: string): Promise { return; } @@ -931,7 +931,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin { * @returns {Promise} Success! if printed correctly or error message string returned by the SDK. */ @Cordova() - print(port: string, emulation: string, commandsArray: CommandsArray): Promise { + print(port: string|null, emulation: string, commandsArray: CommandsArray): Promise { return; }