@mkpro118/semantic-change-detector
Version:
Semantic change detection for TypeScript and TSX code with GitHub Actions integration
19 lines • 1.31 kB
TypeScript
import ts from 'typescript';
export declare function getNodeText(node: ts.Node, sourceFile: ts.SourceFile): string;
export declare function getNodeKind(node: ts.Node): string;
export declare function findNodeByPosition(sourceFile: ts.SourceFile, line: number, column: number): ts.Node | undefined;
export declare function calculateCyclomaticComplexity(node: ts.Node): number;
export declare function isReactHook(name: string): boolean;
export declare function extractHookDependencies(node: ts.CallExpression): string[];
export declare function isSideEffectCall(callExpression: ts.CallExpression, sideEffectCallees: string[]): boolean;
export declare function getParameterSignature(parameter: ts.ParameterDeclaration): {
name: string;
type: string;
optional: boolean;
};
export declare function getFunctionSignature(node: ts.FunctionDeclaration | ts.MethodDeclaration | ts.FunctionExpression | ts.ArrowFunction): string;
export declare function isAlphaConversion(oldName: string, newName: string, context: string): boolean;
export declare function normalizeWhitespace(text: string): string;
export declare function getVisibilityModifier(node: ts.ClassElement): 'public' | 'private' | 'protected';
export declare function levenshtein(a: string, b: string): number;
//# sourceMappingURL=ast-utils.d.ts.map