Skip to content

Commit 2c14c96

Browse files
committed
refactor(preview): rename IGenerateQrCodeOptions to IPrintLiveSyncOptions
1 parent ced06d1 commit 2c14c96

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/definitions/preview-app-livesync.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ declare global {
2424

2525
interface IPreviewQrCodeService {
2626
getPlaygroundAppQrCode(options?: IPlaygroundAppQrCodeOptions): Promise<IDictionary<IQrCodeImageData>>;
27-
printLiveSyncQrCode(options: IGenerateQrCodeOptions): Promise<void>;
27+
printLiveSyncQrCode(options: IPrintLiveSyncOptions): Promise<void>;
2828
}
2929

3030
interface IPlaygroundAppQrCodeOptions {
3131
platform?: string;
3232
}
3333

34-
interface IGenerateQrCodeOptions extends IHasUseHotModuleReloadOption {
34+
interface IPrintLiveSyncOptions extends IHasUseHotModuleReloadOption {
3535
/**
3636
* If set to true, a link will be shown on console instead of QR code
3737
* Default value is false.

lib/services/livesync/playground/preview-qr-code-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class PreviewQrCodeService implements IPreviewQrCodeService {
2929
return result;
3030
}
3131

32-
public async printLiveSyncQrCode(options: IGenerateQrCodeOptions): Promise<void> {
32+
public async printLiveSyncQrCode(options: IPrintLiveSyncOptions): Promise<void> {
3333
const qrCodeUrl = this.$previewSdkService.getQrCodeUrl(options);
3434
const url = await this.getShortenUrl(qrCodeUrl);
3535

0 commit comments

Comments
 (0)