socks 2.2.3 → 2.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,4 +11,7 @@ declare class SocksClientError extends Error {
11
11
  * @param array The array to shuffle.
12
12
  */
13
13
  declare function shuffleArray(array: any[]): void;
14
- export { SocksClientError, shuffleArray };
14
+ declare type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
15
+ [K in Keys]?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
16
+ }[Keys];
17
+ export { RequireOnlyOne, SocksClientError, shuffleArray };