mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
feat(star-prnt): allow null port for print methods and openCashDrawer (#4095)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user