Options
All
  • Public
  • Public/Protected
  • All
Menu

Module util

Index

Variables

Variables

Const constants

constants: { http: { _userAgents: string[]; maxTimeout: number; get userAgent(): string } } = ...

Type declaration

  • http: { _userAgents: string[]; maxTimeout: number; get userAgent(): string }
    • _userAgents: string[]
    • maxTimeout: number
    • get userAgent(): string

Const functions

functions: { encodeURI: any; random: any; removeSearchParams: any; sleep: any } = ...

Type declaration

  • encodeURI: function
    • encodeURI(url: string): string
    • Parameters

      • url: string

      Returns string

  • random: function
    • random<T>(arr: T[]): T
    • Type parameters

      • T

      Parameters

      • arr: T[]

      Returns T

  • removeSearchParams: function
    • removeSearchParams(url: string): string
    • Parameters

      • url: string

      Returns string

  • sleep: function
    • sleep(ms: number): Promise<void>
    • Parameters

      • ms: number

      Returns Promise<void>

Generated using TypeDoc