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