utils.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. export function assign(target: any, source: any): void;
  2. export function chunk(iterable: any, length: any): any[][];
  3. export function endsWith(string: any, expectedEnding: any): boolean;
  4. export function forEach(iterable: any, func: any): void;
  5. export function invert(oldObj: any): {};
  6. export function range(n: any): number[];
  7. export function times(numTimes: any, func: any): any[];
  8. export function toArray(iterable: any): any[];
  9. export function toArrayRecursively(input: any): any;
  10. export function parseContentRange(headerValue: any): {
  11. unit: string | null;
  12. first: number;
  13. last: number;
  14. length: number | null;
  15. } | {
  16. unit: string | null;
  17. first: null;
  18. last: null;
  19. length: number | null;
  20. } | null;
  21. export function wait(milliseconds: any): Promise<any>;
  22. export function zip(a: any, b: any): any[][];
  23. export class AbortError extends Error {
  24. constructor(params: any);
  25. }
  26. export class CustomAggregateError extends Error {
  27. constructor(errors: any, message: any);
  28. errors: any;
  29. }
  30. export const AggregateError: typeof CustomAggregateError;
  31. //# sourceMappingURL=utils.d.ts.map