{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12569","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12569/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12569/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12569/events","html_url":"https://github.com/Microsoft/TypeScript/issues/12569","id":192467893,"number":12569,"title":"how can I use jquery method like this $(\"#id\")?","user":{"login":"renyaoxiang","id":5229894,"avatar_url":"https://avatars.githubusercontent.com/u/5229894?v=3","gravatar_id":"","url":"https://api.github.com/users/renyaoxiang","html_url":"https://github.com/renyaoxiang","followers_url":"https://api.github.com/users/renyaoxiang/followers","following_url":"https://api.github.com/users/renyaoxiang/following{/other_user}","gists_url":"https://api.github.com/users/renyaoxiang/gists{/gist_id}","starred_url":"https://api.github.com/users/renyaoxiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renyaoxiang/subscriptions","organizations_url":"https://api.github.com/users/renyaoxiang/orgs","repos_url":"https://api.github.com/users/renyaoxiang/repos","events_url":"https://api.github.com/users/renyaoxiang/events{/privacy}","received_events_url":"https://api.github.com/users/renyaoxiang/received_events","type":"User","site_admin":false},"labels":[{"id":113971558,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Question","name":"Question","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-30T03:41:41Z","updated_at":"2016-12-05T05:51:01Z","closed_at":null,"body":"while i use the typescript 2\r\n\r\n\r\n`import $ from 'jquery'`\r\n`{`\r\n`    $.getJSON(...)//works`\r\n`    $(...)//error; tip is $ is an Object`\r\n`}`\r\n\r\n\r\ni found the document described that it is unable to use the module as a function.\r\nbut i do want it works\r\n\r\ni also try the usage ` const $ = require('jquery')`, and it does work, but it has no tips at all.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/264773280","html_url":"https://github.com/Microsoft/TypeScript/issues/12569#issuecomment-264773280","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12569","id":264773280,"user":{"login":"renyaoxiang","id":5229894,"avatar_url":"https://avatars.githubusercontent.com/u/5229894?v=3","gravatar_id":"","url":"https://api.github.com/users/renyaoxiang","html_url":"https://github.com/renyaoxiang","followers_url":"https://api.github.com/users/renyaoxiang/followers","following_url":"https://api.github.com/users/renyaoxiang/following{/other_user}","gists_url":"https://api.github.com/users/renyaoxiang/gists{/gist_id}","starred_url":"https://api.github.com/users/renyaoxiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renyaoxiang/subscriptions","organizations_url":"https://api.github.com/users/renyaoxiang/orgs","repos_url":"https://api.github.com/users/renyaoxiang/repos","events_url":"https://api.github.com/users/renyaoxiang/events{/privacy}","received_events_url":"https://api.github.com/users/renyaoxiang/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T05:51:01Z","updated_at":"2016-12-05T05:51:01Z","body":"any how , i fixed the question\r\n$ can be used like a normal way like in javascript"}}
{"actor":{"display_login":"renyaoxiang"}}