@@ -18,15 +18,28 @@ declare global {
18
18
filesToRemove ?: string [ ] ;
19
19
}
20
20
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
+ }
22
30
23
31
interface IPreviewSdkService extends EventEmitter {
24
- getQrCodeUrl ( options : IHasUseHotModuleReloadOption ) : string ;
32
+ getQrCodeUrl ( options : IGetQrCodeUrlOptions ) : string ;
25
33
initialize ( getInitialFiles : ( device : Device ) => Promise < FilesPayload > ) : void ;
26
34
applyChanges ( filesPayload : FilesPayload ) : Promise < void > ;
27
35
stop ( ) : void ;
28
36
}
29
37
38
+ interface IGetQrCodeUrlOptions extends IHasUseHotModuleReloadOption {
39
+ nsConfigPreviewAppSchema ?: string ;
40
+ qrCodeData ?: IPreviewAppQrCodeData ;
41
+ }
42
+
30
43
interface IPreviewAppPluginsService {
31
44
getPluginsUsageWarnings ( data : IPreviewAppLiveSyncData , device : Device ) : string [ ] ;
32
45
comparePluginsOnDevice ( data : IPreviewAppLiveSyncData , device : Device ) : Promise < void > ;
@@ -48,6 +61,7 @@ declare global {
48
61
}
49
62
50
63
interface IPrintLiveSyncOptions extends IHasUseHotModuleReloadOption {
64
+ nsConfigPreviewAppSchema ?: string ;
51
65
/**
52
66
* If set to true, a link will be shown on console instead of QR code
53
67
* Default value is false.
0 commit comments