看起来有一个API调用来查看从[GithubDeveloper]观看回购的用户:( https://developer.github.com/v3/activity/watching/#list-watchers)
List watchers
GET /repos/:owner/:repo/subscribers
Run Code Online (Sandbox Code Playgroud)
有没有办法在网站上看到这个列表?我正确地解释了API吗?观看是否等于订阅?
我正在为自定义的专有服务器端 JavaScript 框架构建 TypeScript 类型声明 (.d.ts) 文件。该框架有几个命名空间,为了方便起见,将它们导入到全局命名空间中。这种关系类似于浏览器中全局命名空间和window对象的变量之间的关系。它看起来像这样。
namespace foo.bar {
export function baz() { //... }
}
baz(); //The function is loaded into global...
foo.bar.baz(); //But it also exists in the namespace
Run Code Online (Sandbox Code Playgroud)
导入到 global 的命名空间很复杂,有很多类和很多嵌套的命名空间。有没有什么方法可以在类型声明文件中表达命名空间和全局命名空间之间的这种关系,而无需重复声明?这将使我能够避免重复数千个环境声明。
我正在使用TypeScript中的NativeScript入门教程:http: //developer.telerik.com/featured/getting-started-nativescript/
在一段代码中,我看到:
exports.loadSignUpView = function(args) {
page = args.object;
page.bindingContext = journeyInfo;
}
Run Code Online (Sandbox Code Playgroud)
经过一些研究,我能够输入args作为
import app = require("application");
exports.loadSignUpView = function(args: app.ApplicationEventData) {
//...
}
Run Code Online (Sandbox Code Playgroud)
但这仍然无法帮助我键入上面的页面对象,它具有bindingContext属性.什么是与页面对应的TypeScript类型?