{"action":"created","issue":{"url":"https://api.github.com/repos/collab-project/videojs-record/issues/183","repository_url":"https://api.github.com/repos/collab-project/videojs-record","labels_url":"https://api.github.com/repos/collab-project/videojs-record/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/collab-project/videojs-record/issues/183/comments","events_url":"https://api.github.com/repos/collab-project/videojs-record/issues/183/events","html_url":"https://github.com/collab-project/videojs-record/issues/183","id":272995567,"number":183,"title":"Typescript typings","user":{"login":"Polyterative","id":16295552,"avatar_url":"https://avatars2.githubusercontent.com/u/16295552?v=4","gravatar_id":"","url":"https://api.github.com/users/Polyterative","html_url":"https://github.com/Polyterative","followers_url":"https://api.github.com/users/Polyterative/followers","following_url":"https://api.github.com/users/Polyterative/following{/other_user}","gists_url":"https://api.github.com/users/Polyterative/gists{/gist_id}","starred_url":"https://api.github.com/users/Polyterative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polyterative/subscriptions","organizations_url":"https://api.github.com/users/Polyterative/orgs","repos_url":"https://api.github.com/users/Polyterative/repos","events_url":"https://api.github.com/users/Polyterative/events{/privacy}","received_events_url":"https://api.github.com/users/Polyterative/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-10T16:54:05Z","updated_at":"2017-11-10T19:09:52Z","closed_at":null,"author_association":"NONE","body":"I was wondering if someone made Typescript typings for this, they would be very useful.\r\nAre there any official plans?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/collab-project/videojs-record/issues/comments/343559846","html_url":"https://github.com/collab-project/videojs-record/issues/183#issuecomment-343559846","issue_url":"https://api.github.com/repos/collab-project/videojs-record/issues/183","id":343559846,"user":{"login":"Polyterative","id":16295552,"avatar_url":"https://avatars2.githubusercontent.com/u/16295552?v=4","gravatar_id":"","url":"https://api.github.com/users/Polyterative","html_url":"https://github.com/Polyterative","followers_url":"https://api.github.com/users/Polyterative/followers","following_url":"https://api.github.com/users/Polyterative/following{/other_user}","gists_url":"https://api.github.com/users/Polyterative/gists{/gist_id}","starred_url":"https://api.github.com/users/Polyterative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polyterative/subscriptions","organizations_url":"https://api.github.com/users/Polyterative/orgs","repos_url":"https://api.github.com/users/Polyterative/repos","events_url":"https://api.github.com/users/Polyterative/events{/privacy}","received_events_url":"https://api.github.com/users/Polyterative/received_events","type":"User","site_admin":false},"created_at":"2017-11-10T19:09:52Z","updated_at":"2017-11-10T19:09:52Z","author_association":"NONE","body":"JavaScript is untyped, meaning that we can pass around and use data, objects and functions with no constraints. We can write code that calls methods that don't exist on an object, or reference variables that we don't have. These kinds of mistakes can be hard to discover when you are writing code, and it can lead to unstable and buggy code. Doing big changes of your code can become difficult and risky as you don't immediately see if some changes conflicts with the rest of the code somewhere else.TypeScript is mainly about adding types to JavaScript. That means that TypeScript requires you to accurately describe the format of your objects and your data. When you do that, that means that the compiler can investigate your code and discover errors. It can see that you are trying to call a function with the wrong kinds of arguments, or reference a variable that is not accessible in the current scope.When you write TypeScript yourself, this formal description of the code is part of the code itself.However, when you use external libraries like jQuery or moment.js, there are no information of the types in that code. So in order to use it with TypeScript, you also have to get files that describe the types of that code. These are the type declaration files, most often with the file extension name .d.ts. Fortunately people have written those kinds of type declaration files for most common javascript libraries out there.Typings was just a tool to install those files. It is now best practice to just use npm.When you have installed those files, which basically only means downloading them and placing them in your project, the TypeScript compiler will understand* that external code and you will be able to use those libraries. Otherwise you would only get errors everywhere.\r\n"}}
{"actor":{"display_login":"Polyterative"}}