fix(types): fix declaration for AppiumServer['close']
previously, `close` was considered an overload, meaning that _both_ the original `close` (from `net.Server`) _and_ our async version were defined.
This was incorrect, since we fully monkeypatch `close`, so this change removes the original `close` declaration entirely
MODIFY
packages/types/lib/index.ts
packages/types/lib/index.ts
@@ -519,7 +519,7 @@ export interface AppiumLogger {
errorAndThrow: (...args: any[]) => never;
}
-export type AppiumServer = Server & {
+export type AppiumServer = Omit<Server, 'close'> & {
close: () => Promise<void>;
};

fix(types): fix declaration for AppiumServer['close']

previously, `close` was considered an overload, meaning that _both_ the original `close` (from `net.Server`) _and_ our async version were defined.

This was incorrect, since we fully monkeypatch `close`, so this change removes the original `close` declaration entirely