@rxap/ts-morph
Version:
Provides utilities for manipulating TypeScript code using the ts-morph library. It offers a fluent API to add, modify, and remove code elements such as classes, decorators, imports, and properties in both Angular and NestJS projects. This package simplifi
8 lines (7 loc) • 340 B
TypeScript
export type FindFunction<Node> = (node: Node) => boolean;
export type FindFunctionFactory<CompareTo, Node> = (compareTo: CompareTo) => FindFunction<Node>;
export declare function FindByNameFunction<CompareTo extends {
name: string;
}, Node extends {
getName(): string | undefined;
}>(compareTo: CompareTo): (node: Node) => boolean;