标签: typescript dependency-injection decorator
我想知道使用typescript装饰器
例如:
function Inject(constr : Function){ //how to get engine property and its type!!! } @Inject class Car{ constructor(private engine : Engine){} } class Engine{ constructor(){} }