使用CommonJS时如何导出类型?
TypeScript + RequireJS导出无法一起使用...我可能做错了,顺便说一句,最终我无法确切了解...
The error is:
'TStartReturn' only refers to a type, but is being used as a value here.ts(2693)
附言
我无法使用ESM模块。仅CommonJS。
例:
type TIndex = number
type TStartReturn = void
module.exports = {
TInd...