UNPKG

@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

21 lines (20 loc) 519 B
import { WriterFunction } from 'ts-morph'; export interface AngularRoute { path: string; component?: string; loadChildren?: string | { import: string; then: string; }; loadComponent?: string | { import: string; then: string; }; outlet?: string | null; data?: Record<string, any> | null; loadRemoteModule?: string | { name: string; entry?: string; }; } export declare function BuildRouteObject(route: AngularRoute): WriterFunction;