例如这样的 js 代码怎么转换成 ts ?
import function1 from './otherside' import function2 from './otherside2' function Klass(){ this.a = 1 } Klass.prototype = { local:function(xxx){}, function1, function2, }
![]() | 1 shakaraka PRO 是。 好像是可以 declare 的。但是这不就变成写代码和写类型分开了?那用 ts 的意义何在 |