function testPlainPush(): ThunkAction { return () => Parse.Cloud.run('test_push'); }
请问这个冒号啥意思
![]() | 1 kindjeff 2016-05-03 15:28:02 +08:00 console 里试了一下是报错的 |
![]() | 3 whahuzhihao 2016-05-03 15:45:11 +08:00 这是 typescript 吗? 声明 testPlayPush 是 ThunkAction 类型的 无责任瞎猜的 |
![]() | 5 bzw875 2016-05-03 16:20:10 +08:00 node v5.11.0 执行也报错,不知道是啥 |
![]() | 6 learnshare 2016-05-03 16:21:57 +08:00 看起来是 TypeScript ,***(): ThunkAction 是声明返回值类型吧 |
![]() | 7 manfay 2016-05-03 16:51:30 +08:00 via iPad ![]() Flow | A static type checker for Javascript http://flowtype.org |