Skip to content

Commit 4753336

Browse files
chore: remove unused interfaces
Clean some unused interfaces
1 parent 074d54a commit 4753336

File tree

5 files changed

+2
-147
lines changed

5 files changed

+2
-147
lines changed

lib/common/declarations.d.ts

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -577,17 +577,6 @@ interface IHttpRequestError extends Error {
577577
proxyAuthenticationRequired: boolean;
578578
}
579579

580-
/**
581-
* Describes error that has stderr information.
582-
*/
583-
interface IStdError extends Error {
584-
585-
/**
586-
* If the error comes from process and have some stderr information - use this property to store it.
587-
*/
588-
stderr: string;
589-
}
590-
591580
interface ICommandOptions {
592581
disableAnalytics?: boolean;
593582
enableHooks?: boolean;
@@ -1264,46 +1253,6 @@ interface IServiceContractGenerator {
12641253
generate(definitionsPath?: string): Promise<IServiceContractClientCode>;
12651254
}
12661255

1267-
/**
1268-
* Describes single registry available for search.
1269-
*/
1270-
interface IHiveId {
1271-
/**
1272-
* Name of the registry that will be checked.
1273-
*/
1274-
registry: string;
1275-
}
1276-
1277-
/**
1278-
* Describes available for search registry ids.
1279-
*/
1280-
interface IHiveIds {
1281-
/**
1282-
* HKEY_LOCAL_MACHINE
1283-
*/
1284-
HKLM: IHiveId;
1285-
1286-
/**
1287-
* HKEY_CURRENT_USER
1288-
*/
1289-
HKCU: IHiveId;
1290-
1291-
/**
1292-
* HKEY_CLASSES_ROOT
1293-
*/
1294-
HKCR: IHiveId;
1295-
1296-
/**
1297-
* HKEY_CURRENT_CONFIG
1298-
*/
1299-
HKCC: IHiveId;
1300-
1301-
/**
1302-
* HKEY_USERS
1303-
*/
1304-
HKU: IHiveId;
1305-
}
1306-
13071256
/**
13081257
* Used to show indication that a process is running
13091258
*/
@@ -1318,30 +1267,6 @@ interface IProgressIndicator {
13181267
showProgressIndicator<T>(promise: Promise<T>, timeout: number, options?: { surpressTrailingNewLine?: boolean }): Promise<T>;
13191268
}
13201269

1321-
/**
1322-
* Describes the spinner.
1323-
*/
1324-
interface ISpinner {
1325-
/**
1326-
* Sets the message that will be printed by spinner.
1327-
* @param {string} msg The new message.
1328-
* @returns {void}
1329-
*/
1330-
message(msg: string): void;
1331-
1332-
/**
1333-
* Starts the spinner.
1334-
* @returns {void}
1335-
*/
1336-
start(): void;
1337-
1338-
/**
1339-
* Stops the spinner.
1340-
* @returns {void}
1341-
*/
1342-
stop(): void;
1343-
}
1344-
13451270
/**
13461271
* Describes project file that should be livesynced
13471272
*/

lib/common/definitions/commands.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ interface INotConfiguredEnvOptions {
4242
hideCloudBuildOption?: boolean;
4343
}
4444

45-
interface IDynamicCommand extends ICommand { }
46-
4745
interface ISimilarCommand {
4846
name: string;
4947
rating: number;

lib/common/definitions/mobile.d.ts

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
declare module Mobile {
2-
interface ISyncOptions {
3-
skipRefresh?: boolean;
4-
}
5-
62
/**
73
* Describes available information for a device.
84
*/
@@ -284,10 +280,6 @@ declare module Mobile {
284280
packagePath: string;
285281
}
286282

287-
interface IRunningAppInfo {
288-
pid: string;
289-
}
290-
291283
interface IDeviceApplicationManager extends NodeJS.EventEmitter {
292284
getInstalledApplications(): Promise<string[]>;
293285
isApplicationInstalled(appIdentifier: string): Promise<boolean>;
@@ -379,10 +371,6 @@ declare module Mobile {
379371
sendBroadcastToDevice(action: string, extras?: IStringDictionary): Promise<number>;
380372
}
381373

382-
interface IDebugOnDeviceSetup {
383-
frontEndPath?: string;
384-
}
385-
386374
interface IDeviceDiscovery extends NodeJS.EventEmitter {
387375
startLookingForDevices(options?: IDeviceLookingOptions): Promise<void>;
388376
}
@@ -1137,36 +1125,6 @@ declare module Mobile {
11371125
handleErrors(errors: IAndroidDebugBridgeError[], treatErrorsAsWarnings?: boolean): void;
11381126
}
11391127

1140-
/**
1141-
* Describes one row from Android's proc/net/tcp table.
1142-
*/
1143-
interface IAndroidPortInformation {
1144-
/**
1145-
* Local address in format: IP-address:port both in hex format.
1146-
*/
1147-
localAddress: string;
1148-
/**
1149-
* Remote address in format: IP-address:port both in hex format.
1150-
*/
1151-
remAddress: string;
1152-
/**
1153-
* Process id.
1154-
*/
1155-
uid: number;
1156-
/**
1157-
* Hex IP address.
1158-
*/
1159-
ipAddressHex: string;
1160-
/**
1161-
* Decimal port number.
1162-
*/
1163-
number: number;
1164-
/**
1165-
* Hex port number.
1166-
*/
1167-
numberHex: string;
1168-
}
1169-
11701128
/**
11711129
* Describes basic information about application on device.
11721130
*/

lib/definitions/libref.d.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

lib/definitions/platform.d.ts

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ interface IPlatformService extends IBuildPlatformAction, NodeJS.EventEmitter {
8484
shouldInstall(device: Mobile.IDevice, projectData: IProjectData, release: IRelease, outputPath?: string): Promise<boolean>;
8585

8686
/**
87-
*
87+
*
8888
* @param {Mobile.IDevice} device The device where the application should be installed.
8989
* @param {IProjectData} projectData DTO with information about the project.
9090
* @param {string} @optional outputPath Directory containing build information and artifacts.
@@ -233,26 +233,6 @@ interface IPlatformSpecificData extends IProvision, ITeamIdentifier {
233233
mobileProvisionData?: any;
234234
}
235235

236-
/**
237-
* Describes information that will be tracked for specific action related for platforms - build, livesync, etc.
238-
*/
239-
interface ITrackPlatformAction extends IPlatform {
240-
/**
241-
* Name of the action.
242-
*/
243-
action: string;
244-
245-
/**
246-
* Defines if the action is for device or emulator.
247-
*/
248-
isForDevice: boolean;
249-
250-
/**
251-
* Defines the OS version of the device for which the action will be executed.
252-
*/
253-
deviceOsVersion?: string;
254-
}
255-
256236
interface IPlatformData {
257237
frameworkPackageName: string;
258238
platformProjectService: IPlatformProjectService;
@@ -315,7 +295,7 @@ interface INodeModulesDependenciesBuilder {
315295
interface IBuildInfo {
316296
prepareTime: string;
317297
buildTime: string;
318-
/**
298+
/**
319299
* Currently it is used only for iOS.
320300
* As `xcrun` command does not throw an error when IPHONEOS_DEPLOYMENT_TARGET is provided in `xcconfig` file and
321301
* the simulator's version does not match IPHONEOS_DEPLOYMENT_TARGET's value, we need to save it to buildInfo file

0 commit comments

Comments
 (0)