source: node_modules/yaml/dist/stringify/stringify.d.ts

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 874 bytes
Line 
1import type { Document } from '../doc/Document.js';
2import type { Alias } from '../nodes/Alias.js';
3import type { ToStringOptions } from '../options.js';
4export type StringifyContext = {
5 actualString?: boolean;
6 allNullValues?: boolean;
7 anchors: Set<string>;
8 doc: Document;
9 forceBlockIndent?: boolean;
10 implicitKey?: boolean;
11 indent: string;
12 indentStep: string;
13 indentAtStart?: number;
14 inFlow: boolean | null;
15 inStringifyKey?: boolean;
16 flowCollectionPadding: string;
17 options: Readonly<Required<Omit<ToStringOptions, 'collectionStyle' | 'indent'>>>;
18 resolvedAliases?: Set<Alias>;
19};
20export declare function createStringifyContext(doc: Document, options: ToStringOptions): StringifyContext;
21export declare function stringify(item: unknown, ctx: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string;
Note: See TracBrowser for help on using the repository browser.