stringifyCollection.d.ts 524 B

1234567891011121314151617
  1. import { Collection } from '../nodes/Collection.js';
  2. import { StringifyContext } from './stringify.js';
  3. interface StringifyCollectionOptions {
  4. blockItemPrefix: string;
  5. flowChars: {
  6. start: '{';
  7. end: '}';
  8. } | {
  9. start: '[';
  10. end: ']';
  11. };
  12. itemIndent: string;
  13. onChompKeep?: () => void;
  14. onComment?: () => void;
  15. }
  16. export declare function stringifyCollection(collection: Readonly<Collection>, ctx: StringifyContext, options: StringifyCollectionOptions): string;
  17. export {};