{"action":"closed","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/2493","repository_url":"https://api.github.com/repos/lodash/lodash","labels_url":"https://api.github.com/repos/lodash/lodash/issues/2493/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/2493/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/2493/events","html_url":"https://github.com/lodash/lodash/issues/2493","id":165019331,"number":2493,"title":"Missing methods in typescript lodash","user":{"login":"hhsadiq","id":8002757,"avatar_url":"https://avatars.githubusercontent.com/u/8002757?v=3","gravatar_id":"","url":"https://api.github.com/users/hhsadiq","html_url":"https://github.com/hhsadiq","followers_url":"https://api.github.com/users/hhsadiq/followers","following_url":"https://api.github.com/users/hhsadiq/following{/other_user}","gists_url":"https://api.github.com/users/hhsadiq/gists{/gist_id}","starred_url":"https://api.github.com/users/hhsadiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhsadiq/subscriptions","organizations_url":"https://api.github.com/users/hhsadiq/orgs","repos_url":"https://api.github.com/users/hhsadiq/repos","events_url":"https://api.github.com/users/hhsadiq/events{/privacy}","received_events_url":"https://api.github.com/users/hhsadiq/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lodash/lodash/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-12T08:16:33Z","updated_at":"2016-07-12T13:14:15Z","closed_at":"2016-07-12T13:14:15Z","body":"> TypeScript code (from https://lodash.com/docs#chain):\r\n> \r\n> var users = [\r\n>     { 'user': 'barney',  'age': 36 },\r\n>     { 'user': 'fred',    'age': 40 },\r\n>     { 'user': 'pebbles', 'age': 1 }\r\n> ];\r\n> \r\n> var youngest = _.chain(users)\r\n>     .sortBy('age')\r\n>     .map(function(chr) {\r\n>         return chr.user + ' is ' + chr.age;\r\n>     })\r\n>     .first()\r\n>     .value();\r\n> tsc compiler complaints:\r\n> \r\n> error TS2339: Property 'sortBy' does not exist on type 'LoDashExplicitArrayWrapper<{ 'user': string; 'age': number; }>'.\r\n> the same happens with pluck\r\n> \r\n\r\nhttps://github.com/DefinitelyTyped/DefinitelyTyped/issues/6586\r\n\r\nSame happens with _.split and countless other methods."}}
{"actor":{"display_login":"jdalton"}}