UNPKG

358 BTypeScriptView Raw
1import ts from "typescript";
2import { VisitorContext } from "../types";
3/**
4 * Gets proper path and calls updaterFn to get the new node if it should be updated
5 */
6export declare function resolvePathAndUpdateNode(context: VisitorContext, node: ts.Node, moduleName: string, updaterFn: (newPath: ts.StringLiteral) => ts.Node | undefined): ts.Node | undefined;