collections.d.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. */
  8. import { Config, Printer, Refs } from './types';
  9. /**
  10. * Return entries (for example, of a map)
  11. * with spacing, indentation, and comma
  12. * without surrounding punctuation (for example, braces)
  13. */
  14. export declare function printIteratorEntries(iterator: any, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer, separator?: string): string;
  15. /**
  16. * Return values (for example, of a set)
  17. * with spacing, indentation, and comma
  18. * without surrounding punctuation (braces or brackets)
  19. */
  20. export declare function printIteratorValues(iterator: Iterator<any>, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer): string;
  21. /**
  22. * Return items (for example, of an array)
  23. * with spacing, indentation, and comma
  24. * without surrounding punctuation (for example, brackets)
  25. **/
  26. export declare function printListItems(list: any, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer): string;
  27. /**
  28. * Return properties of an object
  29. * with spacing, indentation, and comma
  30. * without surrounding punctuation (for example, braces)
  31. */
  32. export declare function printObjectProperties(val: Record<string, any>, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer): string;
  33. //# sourceMappingURL=collections.d.ts.map