@@ -18,15 +18,28 @@ declare global {
1818 filesToRemove ?: string [ ] ;
1919 }
2020
21- interface IPreviewAppLiveSyncData extends IProjectDir , IHasUseHotModuleReloadOption , IBundle , IEnvOptions { }
21+ interface IPreviewAppLiveSyncData extends IProjectDir , IHasUseHotModuleReloadOption , IBundle , IEnvOptions {
22+ qrCodeData ?: IPreviewAppQrCodeData ;
23+ }
24+
25+ interface IPreviewAppQrCodeData {
26+ publishKey ?: string ;
27+ subscribeKey ?: string ;
28+ schemaName ?: string ;
29+ }
2230
2331 interface IPreviewSdkService extends EventEmitter {
24- getQrCodeUrl ( options : IHasUseHotModuleReloadOption ) : string ;
32+ getQrCodeUrl ( options : IGetQrCodeUrlOptions ) : string ;
2533 initialize ( getInitialFiles : ( device : Device ) => Promise < FilesPayload > ) : void ;
2634 applyChanges ( filesPayload : FilesPayload ) : Promise < void > ;
2735 stop ( ) : void ;
2836 }
2937
38+ interface IGetQrCodeUrlOptions extends IHasUseHotModuleReloadOption {
39+ nsConfigPreviewAppSchema ?: string ;
40+ qrCodeData ?: IPreviewAppQrCodeData ;
41+ }
42+
3043 interface IPreviewAppPluginsService {
3144 getPluginsUsageWarnings ( data : IPreviewAppLiveSyncData , device : Device ) : string [ ] ;
3245 comparePluginsOnDevice ( data : IPreviewAppLiveSyncData , device : Device ) : Promise < void > ;
@@ -48,6 +61,7 @@ declare global {
4861 }
4962
5063 interface IPrintLiveSyncOptions extends IHasUseHotModuleReloadOption {
64+ nsConfigPreviewAppSchema ?: string ;
5165 /**
5266 * If set to true, a link will be shown on console instead of QR code
5367 * Default value is false.
0 commit comments