{"action":"created","issue":{"url":"https://api.github.com/repos/isagalaev/highlight.js/issues/841","labels_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/841/labels{/name}","comments_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/841/comments","events_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/841/events","html_url":"https://github.com/isagalaev/highlight.js/issues/841","id":71470828,"number":841,"title":"TypeScript fails with any reasonably complex parameters","user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-28T03:54:58Z","updated_at":"2015-04-29T01:19:07Z","closed_at":null,"body":"I tried to play around on `master`, but couldn't get anything to test or build. So I'm including a pretty complex use case here (completely valid) to make sure it can be covered or at least fail gracefully (currently the entirely block will not be highlighted).\r\n\r\n```ts\r\nfunction test <T>(fn: (...args: any[]) => T = <(...args: any[]) => T>function (...args: any[]) {}): T {\r\n  return fn();\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/isagalaev/highlight.js/issues/comments/97279521","html_url":"https://github.com/isagalaev/highlight.js/issues/841#issuecomment-97279521","issue_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/841","id":97279521,"user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T01:19:07Z","updated_at":"2015-04-29T01:19:07Z","body":"Or even adding an `build` script to `package.json`. I just discovered it by reading the `travis.yml` file, but it shouldn't be that hard. It just wasn't obvious after I'd started hacking with the code how to build it. Looking through the API docs didn't occur to me (since they're API docs), so I just checked the usual places. I think a little note on the readme would more than help on this. Or even a `CONTRIBUTING.md` file (though I don't think I looked for this first). If nothing else, a script in `package.json` is what typically works for me."}}