
function testPlainPush(): ThunkAction { return () => Parse.Cloud.run('test_push'); }
请问这个冒号啥意思
1 kindjeff 2016 年 5 月 3 日 console 里试了一下是报错的 |
3 whahuzhihao 2016 年 5 月 3 日 这是 typescript 吗? 声明 testPlayPush 是 ThunkAction 类型的 无责任瞎猜的 |
5 bzw875 2016 年 5 月 3 日 node v5.11.0 执行也报错,不知道是啥 |
6 learnshare 2016 年 5 月 3 日 看起来是 TypeScript ,***(): ThunkAction 是声明返回值类型吧 |
7 manfay 2016 年 5 月 3 日 via iPad Flow | A static type checker for Javascript http://flowtype.org |