chore(types): tweak/organize imports
MODIFY
packages/types/lib/index.ts
packages/types/lib/index.ts
-import type {Server as WSServer} from 'ws';
-import type {Socket} from 'net';
+import type {Express} from 'express';
import type {Server} from 'http';
+import type {Socket} from 'net';
+import type {Logger} from 'npmlog';
import type {Class as _Class, ConditionalPick, MultidimensionalReadonlyArray} from 'type-fest';
+import type {Server as WSServer} from 'ws';
import {ServerArgs} from './config';
-import type {Express} from 'express';
-import {Driver, ExternalDriver} from './driver';
-import type {Logger} from 'npmlog';
-export * from './driver';
export * from './action';
-export * from './plugin';
+export * from './appium-config';
export * from './capabilities';
export * from './config';
-export * from './appium-config';
-export type {BaseDriverCapConstraints} from './constraints';
export {BASE_DESIRED_CAP_CONSTRAINTS} from './constraints';
+export type {BaseDriverCapConstraints} from './constraints';
+export * from './driver';
+export * from './plugin';
/**
* Utility type for a object with string-only props
@@ -83,11 +82,11 @@ export interface AppiumServerSocket extends Socket {
* The definition of an extension method, which will be provided via Appium's API.
*
*/
-export interface MethodDef<E> {
+export interface MethodDef<Ext> {
/**
* Name of the command.
*/
- readonly command?: keyof ConditionalPick<Required<E>, DriverCommand>;
+ readonly command?: keyof ConditionalPick<Required<Ext>, DriverCommand>;
/**
* If true, this `Method` will never proxy.
*/
@@ -119,13 +118,13 @@ export interface PayloadParams {
/**
* A mapping of URL paths to HTTP methods to {@linkcode MethodDef}s.
*/
-export type MethodMap<E = any> = Readonly<
+export type MethodMap<Ext = any> = Readonly<
Record<
string,
{
- GET?: MethodDef<E>;
- POST?: MethodDef<E>;
- DELETE?: MethodDef<E>;
+ GET?: MethodDef<Ext>;
+ POST?: MethodDef<Ext>;
+ DELETE?: MethodDef<Ext>;
}
>
>;

chore(types): tweak/organize imports