@@ -142,19 +142,13 @@ interface IOptionalSkipWatcher {
142142/**
143143 * Describes a LiveSync operation.
144144 */
145- interface ILiveSyncInfo extends IProjectDir , IEnvOptions , IBundle , IRelease , IOptionalSkipWatcher {
145+ interface ILiveSyncInfo extends IProjectDir , IEnvOptions , IBundle , IRelease , IOptionalSkipWatcher , IHasUseHotModuleReloadOption {
146146 /**
147147 * Defines if all project files should be watched for changes. In case it is not passed, only `app` dir of the project will be watched for changes.
148148 * In case it is set to true, the package.json of the project and node_modules directory will also be watched, so any change there will be transferred to device(s).
149149 */
150150 watchAllFiles ?: boolean ;
151151
152- /**
153- * Defines if the liveEdit functionality should be used, i.e. LiveSync of .js files without restart.
154- * NOTE: Currently this is available only for iOS.
155- */
156- useLiveEdit ?: boolean ;
157-
158152 /**
159153 * Forces a build before the initial livesync.
160154 */
@@ -167,6 +161,13 @@ interface ILiveSyncInfo extends IProjectDir, IEnvOptions, IBundle, IRelease, IOp
167161 timeout : string ;
168162}
169163
164+ interface IHasUseHotModuleReloadOption {
165+ /**
166+ * Defines if the hot module reload should be used.
167+ */
168+ useHotModuleReload ?: boolean ;
169+ }
170+
170171interface ILatestAppPackageInstalledSettings extends IDictionary < IDictionary < boolean > > { /* empty */ }
171172
172173interface IIsEmulator {
@@ -317,28 +318,25 @@ interface IShouldSkipEmitLiveSyncNotification {
317318interface IAttachDebuggerOptions extends IDebuggingAdditionalOptions , IEnableDebuggingDeviceOptions , IIsEmulator , IPlatform , IOptionalOutputPath {
318319}
319320
320- interface ILiveSyncWatchInfo extends IProjectDataComposition {
321+ interface ILiveSyncWatchInfo extends IProjectDataComposition , IHasUseHotModuleReloadOption {
321322 filesToRemove : string [ ] ;
322323 filesToSync : string [ ] ;
323324 isReinstalled : boolean ;
324325 syncAllFiles : boolean ;
325- useLiveEdit ?: boolean ;
326326}
327327
328- interface ILiveSyncResultInfo {
328+ interface ILiveSyncResultInfo extends IHasUseHotModuleReloadOption {
329329 modifiedFilesData : Mobile . ILocalToDevicePathData [ ] ;
330330 isFullSync : boolean ;
331331 deviceAppData : Mobile . IDeviceAppData ;
332- useLiveEdit ?: boolean ;
333332}
334333
335334interface IAndroidLiveSyncResultInfo extends ILiveSyncResultInfo , IAndroidLivesyncSyncOperationResult { }
336335
337- interface IFullSyncInfo extends IProjectDataComposition {
336+ interface IFullSyncInfo extends IProjectDataComposition , IHasUseHotModuleReloadOption {
338337 device : Mobile . IDevice ;
339338 watch : boolean ;
340339 syncAllFiles : boolean ;
341- useLiveEdit ?: boolean ;
342340}
343341
344342interface IPlatformLiveSyncService {
@@ -434,7 +432,7 @@ interface IAndroidLivesyncTool {
434432 */
435433 removeFile ( filePath : string ) : Promise < boolean > ;
436434 /**
437- * Removes files
435+ * Removes files
438436 * @param filePaths - Array of files that will be removed.
439437 * @returns {Promise<boolean[]> }
440438 */
0 commit comments