power-di
Version:
A lightweight Dependency Injection library. Using es6 and other features, remove unnecessary concepts, easy and convenient to use.
5 lines (4 loc) • 381 B
TypeScript
import * as ts from 'typescript';
export type NodeTransformer = (node: ts.Node) => ts.Node;
export type NodeTransformerFactory = (context: ts.TransformationContext, sourceFile: ts.SourceFile, typeChecker: ts.TypeChecker) => NodeTransformer;
export declare function walker(sourceFile: ts.SourceFile, ctx: ts.TransformationContext, nodeTransformer?: NodeTransformer): ts.SourceFile;