feat(star-prnt): allow null port for print methods and openCashDrawer (#4095)

This commit is contained in:
J. Chris Tyler 2022-04-02 12:33:13 -05:00 committed by GitHub
parent 12ef7ac215
commit a17dba1f8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -880,7 +880,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
* @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK. * @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK.
*/ */
@Cordova() @Cordova()
printRawText(port: string, emulation: string, printObj: PrintObj): Promise<any> { printRawText(port: string|null, emulation: string, printObj: PrintObj): Promise<any> {
return; return;
} }
@ -893,7 +893,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
* @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK. * @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK.
*/ */
@Cordova() @Cordova()
printRasterReceipt(port: string, emulation: string, rasterObj: RasterObj): Promise<any> { printRasterReceipt(port: string|null, emulation: string, rasterObj: RasterObj): Promise<any> {
return; return;
} }
@ -906,7 +906,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
* @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK. * @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK.
*/ */
@Cordova() @Cordova()
printImage(port: string, emulation: string, imageObj: ImageObj): Promise<any> { printImage(port: string|null, emulation: string, imageObj: ImageObj): Promise<any> {
return; return;
} }
@ -918,7 +918,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
* @returns {Promise<any>} Success! if opened or error message string returned by the SDK. * @returns {Promise<any>} Success! if opened or error message string returned by the SDK.
*/ */
@Cordova() @Cordova()
openCashDrawer(port: string, emulation: string): Promise<any> { openCashDrawer(port: string|null, emulation: string): Promise<any> {
return; return;
} }
@ -931,7 +931,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
* @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK. * @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK.
*/ */
@Cordova() @Cordova()
print(port: string, emulation: string, commandsArray: CommandsArray): Promise<any> { print(port: string|null, emulation: string, commandsArray: CommandsArray): Promise<any> {
return; return;
} }