Sha256: 8d20da85abf2b7ac3ec97fbb56301dfcb4bcbafdf429dcf79292e6191ecde8a5
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
import { NodePath, Node } from '@babel/traverse'; import * as t from '@babel/types'; declare type RecastComment = t.Comment & { leading?: boolean; trailing?: boolean; }; export declare function replaceWithAndPreserveComments(path: NodePath, node: Node): void; export declare function replaceWithAndPreserveComments(path: NodePath, nodes: Array<Node>): void; export declare function addTrailingComment(comment: t.Comment, to: Node): void; export declare function addLeadingComment(comment: t.Comment, to: Node): void; export declare type CommentPredicate = (comment: RecastComment) => boolean; export declare function addLeadingOrTrailingComment(comment: RecastComment, to: Node): void; export declare function copyComments(from: Node, to: Node, shouldCopy?: CommentPredicate, addComment?: typeof addLeadingOrTrailingComment): void; export declare function copyLeadingComments(from: Node, to: Node, addComment?: typeof addLeadingComment): void; export declare function copyTrailingComments(from: Node, to: Node, addComment?: typeof addTrailingComment): void; export {};
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wice_grid-7.1.0 | node_modules/@resugar/helper-comments/src/index.d.ts |