Nic*_*dis 8 decorator typescript
我试图在不包含在类中的函数中添加自定义TypeScript装饰器,并且无论我做什么,似乎编译器都在抱怨。
有什么想法吗?可能吗?
在函数中添加自定义TypeScript装饰器
没有原始功能。主要问题是hoisting功能的处理。将功能包装到另一个功能中的任何尝试都会破坏葫芦。
更多:https : //github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Decorators.md#decorators
| 归档时间: |
|
| 查看次数: |
3100 次 |
| 最近记录: |