打字稿中的Moment JS所有方法失败,因为'[hooks“类型上不存在[[method]

时间:2019-03-06 22:16:38

标签: typescript momentjs

我有片刻。它在我的global.d.ts中。例如:

-         f.writerow([elem['log']['driver']['username']],elem[log['log']['driver']['first_name']])
+         f.writerow([elem['log']['driver']['username'],elem[log['log']['driver']['first_name']]])

结果:

enter image description here

0 个答案:

没有答案