這個(gè)問(wèn)題在 https://github.com/tc39/proposal-decorators/issues/69 中討論過(guò),那么為什么TypeScript不支持它呢?此代碼不起作用:export @deco()
class a {};雖然這個(gè)確實(shí)如此:@decoexport
class a {};
為什么 TypeScript 不支持導(dǎo)出@deco?
炎炎設(shè)計(jì)
2022-08-27 15:13:48