Skip to content

Commit bd66302

Browse files
FatmeDimitarTachev
authored andcommitted
refactor(preview): rename IGenerateQrCodeOptions to IPrintLiveSyncOptions
1 parent 7ad0018 commit bd66302

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)