source: trip-planner-front/node_modules/socks/typings/common/util.d.ts

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 693 bytes
Line 
1import { SocksClientOptions, SocksClientChainOptions } from './constants';
2/**
3 * Error wrapper for SocksClient
4 */
5declare class SocksClientError extends Error {
6 options: SocksClientOptions | SocksClientChainOptions;
7 constructor(message: string, options: SocksClientOptions | SocksClientChainOptions);
8}
9/**
10 * Shuffles a given array.
11 * @param array The array to shuffle.
12 */
13declare function shuffleArray(array: any[]): void;
14declare 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];
17export { RequireOnlyOne, SocksClientError, shuffleArray };
Note: See TracBrowser for help on using the repository browser.