{"action":"closed","issue":{"url":"https://api.github.com/repos/typings/typings/issues/240","repository_url":"https://api.github.com/repos/typings/typings","labels_url":"https://api.github.com/repos/typings/typings/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/typings/typings/issues/240/comments","events_url":"https://api.github.com/repos/typings/typings/issues/240/events","html_url":"https://github.com/typings/typings/issues/240","id":135721451,"number":240,"title":"How does one determine what versions of typings are currently installed?","user":{"login":"mikemagnusw","id":8778501,"avatar_url":"https://avatars.githubusercontent.com/u/8778501?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemagnusw","html_url":"https://github.com/mikemagnusw","followers_url":"https://api.github.com/users/mikemagnusw/followers","following_url":"https://api.github.com/users/mikemagnusw/following{/other_user}","gists_url":"https://api.github.com/users/mikemagnusw/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemagnusw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemagnusw/subscriptions","organizations_url":"https://api.github.com/users/mikemagnusw/orgs","repos_url":"https://api.github.com/users/mikemagnusw/repos","events_url":"https://api.github.com/users/mikemagnusw/events{/privacy}","received_events_url":"https://api.github.com/users/mikemagnusw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/typings/typings/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-23T12:16:07Z","updated_at":"2016-03-02T04:32:49Z","closed_at":"2016-03-02T04:32:49Z","body":"On installation of typings, the desired version can be specified and the installed version is printed on the terminal.\r\nOnce installed, there is no evidence in any local files that installed typings relate to any particular version of a package. There's nothing in the typings.json and unless furnished by the original 'typer' there's nothing in the .d.ts files.\r\n\r\nThis is a problem when checking out a codebase fresh; invoking `typings install` does not print version numbers. There is no indication what version of a package typings are for. It's also a problem if one closes the terminal and spends a few minutes to make a cup of tea (forgetting installed version/s). Essentially, it's a problem at any time past installation.\r\n\r\nShort of auditing the contents of every installed .d.ts file and correlating against whatever documentation might have been published for a package and its actual code, there is no way to check (at a glance) that the interface matches the implementation.\r\n\r\nAlthough it is relatively straightforward to look up in the registry a package version number of interest from the SHA1 commit id in typings.json, one should not have to and if the corresponding info in the registry is updated, the tenuous link is broken and lookup becomes arduous.\r\n\r\nIt becomes especially painful when migrating/refactoring/updating a large TypeScript codebase.\r\n"}}