Skip to content

Commit

Permalink
feat(star-prnt): allow null port for print methods and openCashDrawer (
Browse files Browse the repository at this point in the history
  • Loading branch information
JCTInfinity authored Apr 2, 2022
1 parent 12ef7ac commit a17dba1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/@awesome-cordova-plugins/plugins/star-prnt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
* @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK.
*/
@Cordova()
printRawText(port: string, emulation: string, printObj: PrintObj): Promise<any> {
printRawText(port: string|null, emulation: string, printObj: PrintObj): Promise<any> {
return;
}

Expand All @@ -893,7 +893,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
* @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK.
*/
@Cordova()
printRasterReceipt(port: string, emulation: string, rasterObj: RasterObj): Promise<any> {
printRasterReceipt(port: string|null, emulation: string, rasterObj: RasterObj): Promise<any> {
return;
}

Expand All @@ -906,7 +906,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
* @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK.
*/
@Cordova()
printImage(port: string, emulation: string, imageObj: ImageObj): Promise<any> {
printImage(port: string|null, emulation: string, imageObj: ImageObj): Promise<any> {
return;
}

Expand All @@ -918,7 +918,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
* @returns {Promise<any>} Success! if opened or error message string returned by the SDK.
*/
@Cordova()
openCashDrawer(port: string, emulation: string): Promise<any> {
openCashDrawer(port: string|null, emulation: string): Promise<any> {
return;
}

Expand All @@ -931,7 +931,7 @@ export class StarPRNT extends AwesomeCordovaNativePlugin {
* @returns {Promise<any>} Success! if printed correctly or error message string returned by the SDK.
*/
@Cordova()
print(port: string, emulation: string, commandsArray: CommandsArray): Promise<any> {
print(port: string|null, emulation: string, commandsArray: CommandsArray): Promise<any> {
return;
}

Expand Down

0 comments on commit a17dba1

Please sign in to comment.