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