UNPKG

power-di

Version:

A lightweight Dependency Injection library. Using es6 and other features, remove unnecessary concepts, easy and convenient to use.

14 lines (13 loc) 503 B
import * as ts from 'typescript'; import { NodeTransformer } from './util'; export default function transformer(program: ts.Program, config?: Config): { before(ctx: ts.TransformationContext): (sourceFile: ts.SourceFile) => ts.SourceFile; }; export declare function before(ctx: ts.TransformationContext, sf: ts.SourceFile, typeChecker: ts.TypeChecker, config?: Config): NodeTransformer; type Config = { decoratorNames?: { inject?: string[]; class?: string[]; }; }; export {};