index.d.ts: Printer: add missing getCommentChildNodes (#14648)

This commit is contained in:
Adrian Leonhard authored and GitHub committed 2023-04-03 02:48:13 +09:00
1 parent 54add8cfe8
commit 5a267fa4be
1 file changed
+10
+10
View File
@@ -497,6 +497,16 @@ export interface Printer<T = any> {
printComment?:
| ((commentPath: AstPath<T>, options: ParserOptions<T>) => Doc)
| undefined;
/**
* By default, Prettier searches all object properties (except for a few predefined ones) of each node recursively.
* This function can be provided to override that behavior.
* @param node The node whose children should be returned.
* @param options Current options.
* @returns `[]` if the node has no children or `undefined` to fall back on the default behavior.
*/
getCommentChildNodes?:
| ((node: T, options: ParserOptions<T>) => T[] | undefined)
| undefined;
handleComments?:
| {
ownLine?: