1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export type LiteralUnion<T extends U, U = string> = T | (Pick<U, never> & { _?: never | undefined });
|
22 |
|
23 | export type AST = any;
|
24 | export type Doc = doc.builders.Doc;
|
25 |
|
26 |
|
27 |
|
28 | export class AstPath<T = any> {
|
29 | constructor(value: T);
|
30 | stack: T[];
|
31 | getName(): PropertyKey | null;
|
32 | getValue(): T;
|
33 | getNode(count?: number): T | null;
|
34 | getParentNode(count?: number): T | null;
|
35 | call<U>(callback: (path: this) => U, ...names: PropertyKey[]): U;
|
36 | callParent<U>(callback: (path: this) => U, count?: number): U;
|
37 | each(callback: (path: this, index: number, value: any) => void, ...names: PropertyKey[]): void;
|
38 | map<U>(callback: (path: this, index: number, value: any) => U, ...names: PropertyKey[]): U[];
|
39 | match(...predicates: Array<(node: any, name: string | null, number: number | null) => boolean>): boolean;
|
40 | }
|
41 |
|
42 | /** @deprecated `FastPath` was renamed to `AstPath` */
|
43 | export type FastPath<T = any> = AstPath<T>;
|
44 |
|
45 | export type BuiltInParser = (text: string, options?: any) => AST;
|
46 | export type BuiltInParserName =
|
47 | | 'angular'
|
48 | | 'babel-flow'
|
49 | | 'babel-ts'
|
50 | | 'babel'
|
51 | | 'css'
|
52 | | 'espree'
|
53 | | 'flow'
|
54 | | 'glimmer'
|
55 | | 'graphql'
|
56 | | 'html'
|
57 | | 'json-stringify'
|
58 | | 'json'
|
59 | | 'json5'
|
60 | | 'less'
|
61 | | 'lwc'
|
62 | | 'markdown'
|
63 | | 'mdx'
|
64 | | 'meriyah'
|
65 | | 'scss'
|
66 | | 'typescript'
|
67 | | 'vue'
|
68 | | 'yaml';
|
69 | export type BuiltInParsers = Record<BuiltInParserName, BuiltInParser>;
|
70 |
|
71 | export type CustomParser = (text: string, parsers: BuiltInParsers, options: Options) => AST;
|
72 |
|
73 | export interface Options extends Partial<RequiredOptions> {}
|
74 | export interface RequiredOptions extends doc.printer.Options {
|
75 | |
76 |
|
77 |
|
78 |
|
79 | semi: boolean;
|
80 | |
81 |
|
82 |
|
83 |
|
84 | singleQuote: boolean;
|
85 | |
86 |
|
87 |
|
88 |
|
89 | jsxSingleQuote: boolean;
|
90 | |
91 |
|
92 |
|
93 |
|
94 | trailingComma: 'none' | 'es5' | 'all';
|
95 | |
96 |
|
97 |
|
98 |
|
99 | bracketSpacing: boolean;
|
100 | |
101 |
|
102 |
|
103 |
|
104 |
|
105 | bracketSameLine: boolean;
|
106 | |
107 |
|
108 |
|
109 |
|
110 |
|
111 | jsxBracketSameLine: boolean;
|
112 | |
113 |
|
114 |
|
115 |
|
116 | rangeStart: number;
|
117 | |
118 |
|
119 |
|
120 |
|
121 | rangeEnd: number;
|
122 | |
123 |
|
124 |
|
125 | parser: LiteralUnion<BuiltInParserName> | CustomParser;
|
126 | |
127 |
|
128 |
|
129 | filepath: string;
|
130 | |
131 |
|
132 |
|
133 |
|
134 |
|
135 | requirePragma: boolean;
|
136 | |
137 |
|
138 |
|
139 |
|
140 |
|
141 |
|
142 |
|
143 | insertPragma: boolean;
|
144 | |
145 |
|
146 |
|
147 |
|
148 |
|
149 | proseWrap: 'always' | 'never' | 'preserve';
|
150 | |
151 |
|
152 |
|
153 |
|
154 | arrowParens: 'avoid' | 'always';
|
155 | |
156 |
|
157 |
|
158 | plugins: Array<string | Plugin>;
|
159 | |
160 |
|
161 |
|
162 | pluginSearchDirs: string[];
|
163 | |
164 |
|
165 |
|
166 |
|
167 | htmlWhitespaceSensitivity: 'css' | 'strict' | 'ignore';
|
168 | |
169 |
|
170 |
|
171 |
|
172 | endOfLine: 'auto' | 'lf' | 'crlf' | 'cr';
|
173 | |
174 |
|
175 |
|
176 |
|
177 | quoteProps: 'as-needed' | 'consistent' | 'preserve';
|
178 | |
179 |
|
180 |
|
181 |
|
182 | vueIndentScriptAndStyle: boolean;
|
183 | |
184 |
|
185 |
|
186 |
|
187 | embeddedLanguageFormatting: 'auto' | 'off';
|
188 | }
|
189 |
|
190 | export interface ParserOptions<T = any> extends RequiredOptions {
|
191 | locStart: (node: T) => number;
|
192 | locEnd: (node: T) => number;
|
193 | originalText: string;
|
194 | }
|
195 |
|
196 | export interface Plugin<T = any> {
|
197 | languages?: SupportLanguage[] | undefined;
|
198 | parsers?: { [parserName: string]: Parser<T> } | undefined;
|
199 | printers?: { [astFormat: string]: Printer<T> } | undefined;
|
200 | options?: SupportOptions | undefined;
|
201 | defaultOptions?: Partial<RequiredOptions> | undefined;
|
202 | }
|
203 |
|
204 | export interface Parser<T = any> {
|
205 | parse: (text: string, parsers: { [parserName: string]: Parser }, options: ParserOptions<T>) => T;
|
206 | astFormat: string;
|
207 | hasPragma?: ((text: string) => boolean) | undefined;
|
208 | locStart: (node: T) => number;
|
209 | locEnd: (node: T) => number;
|
210 | preprocess?: ((text: string, options: ParserOptions<T>) => string) | undefined;
|
211 | }
|
212 |
|
213 | export interface Printer<T = any> {
|
214 | print(path: AstPath<T>, options: ParserOptions<T>, print: (path: AstPath<T>) => Doc): Doc;
|
215 | embed?:
|
216 | | ((
|
217 | path: AstPath<T>,
|
218 | print: (path: AstPath<T>) => Doc,
|
219 | textToDoc: (text: string, options: Options) => Doc,
|
220 | options: ParserOptions<T>,
|
221 | ) => Doc | null)
|
222 | | undefined;
|
223 | insertPragma?: ((text: string) => string) | undefined;
|
224 | /**
|
225 | * @returns `null` if you want to remove this node
|
226 | * @returns `void` if you want to use modified newNode
|
227 | * @returns anything if you want to replace the node with it
|
228 | */
|
229 | massageAstNode?: ((node: any, newNode: any, parent: any) => any) | undefined;
|
230 | hasPrettierIgnore?: ((path: AstPath<T>) => boolean) | undefined;
|
231 | canAttachComment?: ((node: T) => boolean) | undefined;
|
232 | willPrintOwnComments?: ((path: AstPath<T>) => boolean) | undefined;
|
233 | printComment?: ((commentPath: AstPath<T>, options: ParserOptions<T>) => Doc) | undefined;
|
234 | handleComments?:
|
235 | | {
|
236 | ownLine?:
|
237 | | ((
|
238 | commentNode: any,
|
239 | text: string,
|
240 | options: ParserOptions<T>,
|
241 | ast: T,
|
242 | isLastComment: boolean,
|
243 | ) => boolean)
|
244 | | undefined;
|
245 | endOfLine?:
|
246 | | ((
|
247 | commentNode: any,
|
248 | text: string,
|
249 | options: ParserOptions<T>,
|
250 | ast: T,
|
251 | isLastComment: boolean,
|
252 | ) => boolean)
|
253 | | undefined;
|
254 | remaining?:
|
255 | | ((
|
256 | commentNode: any,
|
257 | text: string,
|
258 | options: ParserOptions<T>,
|
259 | ast: T,
|
260 | isLastComment: boolean,
|
261 | ) => boolean)
|
262 | | undefined;
|
263 | }
|
264 | | undefined;
|
265 | }
|
266 |
|
267 | export interface CursorOptions extends Options {
|
268 | /**
|
269 | * Specify where the cursor is.
|
270 | */
|
271 | cursorOffset: number;
|
272 | rangeStart?: never;
|
273 | rangeEnd?: never;
|
274 | }
|
275 |
|
276 | export interface CursorResult {
|
277 | formatted: string;
|
278 | cursorOffset: number;
|
279 | }
|
280 |
|
281 | /**
|
282 | * `format` is used to format text using Prettier. [Options](https:
|
283 | */
|
284 | export function format(source: string, options?: Options): string;
|
285 |
|
286 |
|
287 |
|
288 |
|
289 |
|
290 | export function check(source: string, options?: Options): boolean;
|
291 |
|
292 |
|
293 |
|
294 |
|
295 |
|
296 |
|
297 |
|
298 | export function formatWithCursor(source: string, options: CursorOptions): CursorResult;
|
299 |
|
300 | export interface ResolveConfigOptions {
|
301 | |
302 |
|
303 |
|
304 | useCache?: boolean | undefined;
|
305 | |
306 |
|
307 |
|
308 | config?: string | undefined;
|
309 | |
310 |
|
311 |
|
312 |
|
313 |
|
314 |
|
315 |
|
316 |
|
317 |
|
318 | editorconfig?: boolean | undefined;
|
319 | }
|
320 |
|
321 |
|
322 |
|
323 |
|
324 |
|
325 |
|
326 |
|
327 |
|
328 |
|
329 |
|
330 |
|
331 |
|
332 |
|
333 |
|
334 | export function resolveConfig(filePath: string, options?: ResolveConfigOptions): Promise<Options | null>;
|
335 | export namespace resolveConfig {
|
336 | function sync(filePath: string, options?: ResolveConfigOptions): Options | null;
|
337 | }
|
338 |
|
339 |
|
340 |
|
341 |
|
342 |
|
343 |
|
344 |
|
345 |
|
346 |
|
347 |
|
348 |
|
349 |
|
350 | export function resolveConfigFile(filePath?: string): Promise<string | null>;
|
351 | export namespace resolveConfigFile {
|
352 | function sync(filePath?: string): string | null;
|
353 | }
|
354 |
|
355 |
|
356 |
|
357 |
|
358 |
|
359 | export function clearConfigCache(): void;
|
360 |
|
361 | export interface SupportLanguage {
|
362 | name: string;
|
363 | since?: string | undefined;
|
364 | parsers: BuiltInParserName[] | string[];
|
365 | group?: string | undefined;
|
366 | tmScope?: string | undefined;
|
367 | aceMode?: string | undefined;
|
368 | codemirrorMode?: string | undefined;
|
369 | codemirrorMimeType?: string | undefined;
|
370 | aliases?: string[] | undefined;
|
371 | extensions?: string[] | undefined;
|
372 | filenames?: string[] | undefined;
|
373 | linguistLanguageId?: number | undefined;
|
374 | vscodeLanguageIds?: string[] | undefined;
|
375 | }
|
376 |
|
377 | export interface SupportOptionRange {
|
378 | start: number;
|
379 | end: number;
|
380 | step: number;
|
381 | }
|
382 |
|
383 | export type SupportOptionType = 'int' | 'boolean' | 'choice' | 'path';
|
384 |
|
385 | export type CoreCategoryType = 'Config' | 'Editor' | 'Format' | 'Other' | 'Output' | 'Global' | 'Special';
|
386 |
|
387 | export interface BaseSupportOption<Type extends SupportOptionType> {
|
388 | readonly name?: string | undefined;
|
389 | since: string;
|
390 | |
391 |
|
392 |
|
393 | category: string;
|
394 | |
395 |
|
396 |
|
397 |
|
398 |
|
399 |
|
400 |
|
401 | type: Type;
|
402 | |
403 |
|
404 |
|
405 |
|
406 |
|
407 |
|
408 | deprecated?: true | string | undefined;
|
409 | |
410 |
|
411 |
|
412 |
|
413 | description?: string | undefined;
|
414 | }
|
415 |
|
416 | export interface IntSupportOption extends BaseSupportOption<'int'> {
|
417 | default?: number | undefined;
|
418 | array?: false | undefined;
|
419 | range?: SupportOptionRange | undefined;
|
420 | }
|
421 |
|
422 | export interface IntArraySupportOption extends BaseSupportOption<'int'> {
|
423 | default?: Array<{ value: number[] }> | undefined;
|
424 | array: true;
|
425 | }
|
426 |
|
427 | export interface BooleanSupportOption extends BaseSupportOption<'boolean'> {
|
428 | default?: boolean | undefined;
|
429 | array?: false | undefined;
|
430 | description: string;
|
431 | oppositeDescription?: string | undefined;
|
432 | }
|
433 |
|
434 | export interface BooleanArraySupportOption extends BaseSupportOption<'boolean'> {
|
435 | default?: Array<{ value: boolean[] }> | undefined;
|
436 | array: true;
|
437 | }
|
438 |
|
439 | export interface ChoiceSupportOption<Value = any> extends BaseSupportOption<'choice'> {
|
440 | default?: Value | Array<{ since: string; value: Value }> | undefined;
|
441 | description: string;
|
442 | choices: Array<{
|
443 | since?: string | undefined;
|
444 | value: Value;
|
445 | description: string;
|
446 | }>;
|
447 | }
|
448 |
|
449 | export interface PathSupportOption extends BaseSupportOption<'path'> {
|
450 | default?: string | undefined;
|
451 | array?: false | undefined;
|
452 | }
|
453 |
|
454 | export interface PathArraySupportOption extends BaseSupportOption<'path'> {
|
455 | default?: Array<{ value: string[] }> | undefined;
|
456 | array: true;
|
457 | }
|
458 |
|
459 | export type SupportOption =
|
460 | | IntSupportOption
|
461 | | IntArraySupportOption
|
462 | | BooleanSupportOption
|
463 | | BooleanArraySupportOption
|
464 | | ChoiceSupportOption
|
465 | | PathSupportOption
|
466 | | PathArraySupportOption;
|
467 |
|
468 | export interface SupportOptions extends Record<string, SupportOption> {}
|
469 |
|
470 | export interface SupportInfo {
|
471 | languages: SupportLanguage[];
|
472 | options: SupportOption[];
|
473 | }
|
474 |
|
475 | export interface FileInfoOptions {
|
476 | ignorePath?: string | undefined;
|
477 | withNodeModules?: boolean | undefined;
|
478 | plugins?: string[] | undefined;
|
479 | resolveConfig?: boolean | undefined;
|
480 | }
|
481 |
|
482 | export interface FileInfoResult {
|
483 | ignored: boolean;
|
484 | inferredParser: string | null;
|
485 | }
|
486 |
|
487 | export function getFileInfo(filePath: string, options?: FileInfoOptions): Promise<FileInfoResult>;
|
488 |
|
489 | export namespace getFileInfo {
|
490 | function sync(filePath: string, options?: FileInfoOptions): FileInfoResult;
|
491 | }
|
492 |
|
493 |
|
494 |
|
495 |
|
496 | export function getSupportInfo(): SupportInfo;
|
497 |
|
498 |
|
499 |
|
500 |
|
501 | export const version: string;
|
502 |
|
503 |
|
504 | export namespace util {
|
505 | interface SkipOptions {
|
506 | backwards?: boolean | undefined;
|
507 | }
|
508 |
|
509 | type Quote = "'" | '"';
|
510 |
|
511 | function addDanglingComment(node: any, comment: any, marker: any): void;
|
512 | function addLeadingComment(node: any, comment: any): void;
|
513 | function addTrailingComment(node: any, comment: any): void;
|
514 | function getAlignmentSize(value: string, tabWidth: number, startIndex?: number): number;
|
515 | function getIndentSize(value: string, tabWidth: number): number;
|
516 | function getMaxContinuousCount(str: string, target: string): number;
|
517 | function getNextNonSpaceNonCommentCharacterIndex<N>(
|
518 | text: string,
|
519 | node: N,
|
520 | locEnd: (node: N) => number,
|
521 | ): number | false;
|
522 | function getStringWidth(text: string): number;
|
523 | function hasNewline(text: string, index: number, opts?: SkipOptions): boolean;
|
524 | function hasNewlineInRange(text: string, start: number, end: number): boolean;
|
525 | function hasSpaces(text: string, index: number, opts?: SkipOptions): boolean;
|
526 | function isNextLineEmpty<N>(text: string, node: N, locEnd: (node: N) => number): boolean;
|
527 | function isNextLineEmptyAfterIndex(text: string, index: number): boolean;
|
528 | function isPreviousLineEmpty<N>(text: string, node: N, locStart: (node: N) => number): boolean;
|
529 | function makeString(rawContent: string, enclosingQuote: Quote, unescapeUnnecessaryEscapes?: boolean): string;
|
530 | function skip(chars: string | RegExp): (text: string, index: number | false, opts?: SkipOptions) => number | false;
|
531 | function skipEverythingButNewLine(text: string, index: number | false, opts?: SkipOptions): number | false;
|
532 | function skipInlineComment(text: string, index: number | false): number | false;
|
533 | function skipNewline(text: string, index: number | false, opts?: SkipOptions): number | false;
|
534 | function skipSpaces(text: string, index: number | false, opts?: SkipOptions): number | false;
|
535 | function skipToLineEnd(text: string, index: number | false, opts?: SkipOptions): number | false;
|
536 | function skipTrailingComment(text: string, index: number | false): number | false;
|
537 | function skipWhitespace(text: string, index: number | false, opts?: SkipOptions): number | false;
|
538 | }
|
539 |
|
540 |
|
541 | export namespace doc {
|
542 | namespace builders {
|
543 | type DocCommand =
|
544 | | Align
|
545 | | BreakParent
|
546 | | Concat
|
547 | | Cursor
|
548 | | Fill
|
549 | | Group
|
550 | | IfBreak
|
551 | | Indent
|
552 | | IndentIfBreak
|
553 | | Label
|
554 | | Line
|
555 | | LineSuffix
|
556 | | LineSuffixBoundary
|
557 | | Trim;
|
558 | type Doc = string | Doc[] | DocCommand;
|
559 |
|
560 | interface Align {
|
561 | type: 'align';
|
562 | contents: Doc;
|
563 | n: number | string | { type: 'root' };
|
564 | }
|
565 |
|
566 | interface BreakParent {
|
567 | type: 'break-parent';
|
568 | }
|
569 |
|
570 | interface Concat {
|
571 | type: 'concat';
|
572 | parts: Doc[];
|
573 | }
|
574 |
|
575 | interface Cursor {
|
576 | type: 'cursor';
|
577 | placeholder: symbol;
|
578 | }
|
579 |
|
580 | interface Fill {
|
581 | type: 'fill';
|
582 | parts: Doc[];
|
583 | }
|
584 |
|
585 | interface Group {
|
586 | type: 'group';
|
587 | contents: Doc;
|
588 | break: boolean;
|
589 | expandedStates: Doc[];
|
590 | }
|
591 |
|
592 | interface HardlineWithoutBreakParent extends Line {
|
593 | hard: true;
|
594 | }
|
595 |
|
596 | interface IfBreak {
|
597 | type: 'if-break';
|
598 | breakContents: Doc;
|
599 | flatContents: Doc;
|
600 | }
|
601 |
|
602 | interface Indent {
|
603 | type: 'indent';
|
604 | contents: Doc;
|
605 | }
|
606 |
|
607 | interface IndentIfBreak {
|
608 | type: 'indent-if-break';
|
609 | }
|
610 |
|
611 | interface Label {
|
612 | type: 'label';
|
613 | }
|
614 |
|
615 | interface Line {
|
616 | type: 'line';
|
617 | soft?: boolean | undefined;
|
618 | hard?: boolean | undefined;
|
619 | literal?: boolean | undefined;
|
620 | }
|
621 |
|
622 | interface LineSuffix {
|
623 | type: 'line-suffix';
|
624 | contents: Doc;
|
625 | }
|
626 |
|
627 | interface LineSuffixBoundary {
|
628 | type: 'line-suffix-boundary';
|
629 | }
|
630 |
|
631 | interface LiterallineWithoutBreakParent extends Line {
|
632 | hard: true;
|
633 | literal: true;
|
634 | }
|
635 |
|
636 | interface Softline extends Line {
|
637 | soft: true;
|
638 | }
|
639 |
|
640 | interface Trim {
|
641 | type: 'trim';
|
642 | }
|
643 |
|
644 | interface GroupOptions {
|
645 | shouldBreak?: boolean | undefined;
|
646 | id?: symbol | undefined;
|
647 | }
|
648 |
|
649 | function addAlignmentToDoc(doc: Doc, size: number, tabWidth: number): Doc;
|
650 |
|
651 | function align(widthOrString: Align['n'], doc: Doc): Align;
|
652 |
|
653 | const breakParent: BreakParent;
|
654 | |
655 |
|
656 |
|
657 |
|
658 | function concat(docs: Doc[]): Concat;
|
659 |
|
660 | function conditionalGroup(alternatives: Doc[], options?: GroupOptions): Group;
|
661 |
|
662 | function dedent(doc: Doc): Align;
|
663 |
|
664 | function dedentToRoot(doc: Doc): Align;
|
665 |
|
666 | function fill(docs: Doc[]): Fill;
|
667 |
|
668 | function group(doc: Doc, opts?: GroupOptions): Group;
|
669 |
|
670 | const hardline: Concat;
|
671 |
|
672 | const hardlineWithoutBreakParent: HardlineWithoutBreakParent;
|
673 |
|
674 | function ifBreak(ifBreak: Doc, noBreak?: Doc, options?: { groupId?: symbol | undefined }): IfBreak;
|
675 |
|
676 | function indent(doc: Doc): Indent;
|
677 |
|
678 | function indentIfBreak(doc: Doc, opts: { groupId: symbol; negate?: boolean | undefined }): IndentIfBreak;
|
679 |
|
680 | function join(sep: Doc, docs: Doc[]): Concat;
|
681 |
|
682 | function label(label: string, doc: Doc): Label;
|
683 |
|
684 | const line: Line;
|
685 |
|
686 | function lineSuffix(suffix: Doc): LineSuffix;
|
687 |
|
688 | const lineSuffixBoundary: LineSuffixBoundary;
|
689 |
|
690 | const literalline: Concat;
|
691 |
|
692 | const literallineWithoutBreakParent: LiterallineWithoutBreakParent;
|
693 |
|
694 | function markAsRoot(doc: Doc): Align;
|
695 |
|
696 | const softline: Softline;
|
697 |
|
698 | const trim: Trim;
|
699 |
|
700 | const cursor: Cursor;
|
701 | }
|
702 | namespace debug {
|
703 | function printDocToDebug(doc: Doc): string;
|
704 | }
|
705 | namespace printer {
|
706 | function printDocToString(
|
707 | doc: Doc,
|
708 | options: Options,
|
709 | ): {
|
710 | formatted: string;
|
711 | cursorNodeStart?: number | undefined;
|
712 | cursorNodeText?: string | undefined;
|
713 | };
|
714 | interface Options {
|
715 | |
716 |
|
717 |
|
718 |
|
719 | printWidth: number;
|
720 | |
721 |
|
722 |
|
723 |
|
724 | tabWidth: number;
|
725 | |
726 |
|
727 |
|
728 |
|
729 | useTabs: boolean;
|
730 | parentParser?: string | undefined;
|
731 | __embeddedInHtml?: boolean | undefined;
|
732 | }
|
733 | }
|
734 | namespace utils {
|
735 | function cleanDoc(doc: Doc): Doc;
|
736 | function findInDoc<T = Doc>(doc: Doc, callback: (doc: Doc) => T, defaultValue: T): T;
|
737 | function getDocParts(doc: Doc): Doc;
|
738 | function isConcat(doc: Doc): boolean;
|
739 | function isEmpty(doc: Doc): boolean;
|
740 | function isLineNext(doc: Doc): boolean;
|
741 | function mapDoc<T = Doc>(doc: Doc, callback: (doc: Doc) => T): T;
|
742 | function normalizeDoc(doc: Doc): Doc;
|
743 | function normalizeParts(parts: Doc[]): Doc[];
|
744 | function propagateBreaks(doc: Doc): void;
|
745 | function removeLines(doc: Doc): Doc;
|
746 | function replaceNewlinesWithLiterallines(doc: Doc): Doc;
|
747 | function stripTrailingHardline(doc: Doc): Doc;
|
748 | function traverseDoc(
|
749 | doc: Doc,
|
750 | onEnter?: (doc: Doc) => void | boolean,
|
751 | onExit?: (doc: Doc) => void,
|
752 | shouldTraverseConditionalGroups?: boolean,
|
753 | ): void;
|
754 | function willBreak(doc: Doc): boolean;
|
755 | }
|
756 | }
|
757 |
|
\ | No newline at end of file |