recast
Version:
JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator
23 lines (22 loc) • 1.17 kB
TypeScript
import * as types from "ast-types";
import type { Options, TrailingCommaOptions } from "./options";
export declare function hasDanglingElse(node: types.namedTypes.IfStatement["consequent"]): boolean;
export declare function getLineTerminator(): any;
export declare function isBrowser(): boolean;
export declare function getOption(options: any, key: any, defaultValue: any): any;
export declare function getUnionOfKeys(...args: any[]): any;
export declare function comparePos(pos1: any, pos2: any): number;
export declare function copyPos(pos: any): {
line: any;
column: any;
};
export declare function composeSourceMaps(formerMap: any, latterMap: any): any;
export declare function getTrueLoc(node: any, lines: any): {
start: any;
end: any;
} | null;
export declare function fixFaultyLocations(node: any, lines: any): void;
export declare function isExportDeclaration(node: any): boolean;
export declare function getParentExportDeclaration(path: any): any;
export declare function isTrailingCommaEnabled(options: Pick<Options, "trailingComma">, context: keyof TrailingCommaOptions): boolean;
export declare function isShorthandSpecifier(node: any): boolean;