2016-01-26 82 views
0

Link to history of angular-ui-router d.ts file using the commit hash困惑在tsd.json提交哈希

我已經在我的tsd.json文件 ``

{ 
    "version": "v4", 
    "repo": "borisyankov/DefinitelyTyped", 
    "ref": "master", 
    "path": "typings", 
    "bundle": "typings/tsd.d.ts", 
    "installed": { 
    "jquery/jquery.d.ts": { 
     "commit": "93bae1bb4c887c1375a4c1f0c3bb849ff06b8ac6" 
    }, 
    "angularjs/angular.d.ts": { 
     "commit": "93bae1bb4c887c1375a4c1f0c3bb849ff06b8ac6" 
    }, 
    "angularjs/angular-route.d.ts": { 
     "commit": "6a6ad7068a177c0d7a8a20830626cb63277191c5" 
    }, 
    "angularjs/angular-animate.d.ts": { 
     "commit": "6a6ad7068a177c0d7a8a20830626cb63277191c5" 
    }, 
    "angularjs/angular-sanitize.d.ts": { 
     "commit": "6a6ad7068a177c0d7a8a20830626cb63277191c5" 
    }, 
    "angularjs/angular-resource.d.ts": { 
     "commit": "1984ea435fe9e93a012d50db7773db58ae5d494b" 
    }, 
    "angularjs/angular-mocks.d.ts": { 
     "commit": "d1f6bde13f2209be42e86c3686761e8bfcbb50a5" 
    }, 
    "angular-ui-router/angular-ui-router.d.ts": { 
     "commit": "93bae1bb4c887c1375a4c1f0c3bb849ff06b8ac6" 
    } 
    } 
} 

`` 如何提交哈希以下工作?我試圖用提交散列來看這個angular-ui-router類型定義文件,就像這樣.. https://github.com/DefinitelyTyped/DefinitelyTyped/commit/93bae1bb4c887c1375a4c1f0c3bb849ff06b8ac6 但是這並沒有讓我得到上面定義的散列的angular-ui-router定義文件。看到歷史上的圖像

所以每次我做tsd安裝,我每次都得到相同的提交版本嗎?

如果我想升級到新版本,我將不得不運行tsd更新angular-ui-router,我猜?

對不起,這些問題,但我沒有得到一個具體的答案搜索了很多。 謝謝,

回答

1

這是完整的DefinitelyTyped存儲庫的最新提交的散列。

你可以閱讀更多關於此這裏:link

你會得到其他哈希每次更新您的定義時,例如用TSD update命令。