{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/720","labels_url":"https://api.github.com/repos/palantir/tslint/issues/720/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/720/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/720/events","html_url":"https://github.com/palantir/tslint/issues/720","id":110424369,"number":720,"title":"Rule proposal: require explicit {} generic type parameter","user":{"login":"myitcv","id":3374574,"avatar_url":"https://avatars.githubusercontent.com/u/3374574?v=3","gravatar_id":"","url":"https://api.github.com/users/myitcv","html_url":"https://github.com/myitcv","followers_url":"https://api.github.com/users/myitcv/followers","following_url":"https://api.github.com/users/myitcv/following{/other_user}","gists_url":"https://api.github.com/users/myitcv/gists{/gist_id}","starred_url":"https://api.github.com/users/myitcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myitcv/subscriptions","organizations_url":"https://api.github.com/users/myitcv/orgs","repos_url":"https://api.github.com/users/myitcv/repos","events_url":"https://api.github.com/users/myitcv/events{/privacy}","received_events_url":"https://api.github.com/users/myitcv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-08T10:56:41Z","updated_at":"2015-10-08T14:32:04Z","closed_at":null,"body":"This will also be dependent on #680 landing.\r\n\r\nConsider:\r\n\r\n```typescript\r\nclass Wrapper<T> {\r\n\tval: T;\r\n}\r\n\r\nlet x = new Wrapper();\r\n```\r\n\r\nThe type of `x` here is `Wrapper<{}>` because:\r\n\r\n* the compiler can't infer anything else\r\n* I haven't supplied a type parameter\r\n\r\nI would like there to be a lint error whenever the compiler falls back to `{}` as the inferred generic type parameter. \r\n\r\nIf `{}` is what I intend then I can write:\r\n\r\n```typescript\r\nlet x = new Wrapper<{}>();\r\n```\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/146564279","html_url":"https://github.com/palantir/tslint/issues/720#issuecomment-146564279","issue_url":"https://api.github.com/repos/palantir/tslint/issues/720","id":146564279,"user":{"login":"adidahiya","id":723999,"avatar_url":"https://avatars.githubusercontent.com/u/723999?v=3","gravatar_id":"","url":"https://api.github.com/users/adidahiya","html_url":"https://github.com/adidahiya","followers_url":"https://api.github.com/users/adidahiya/followers","following_url":"https://api.github.com/users/adidahiya/following{/other_user}","gists_url":"https://api.github.com/users/adidahiya/gists{/gist_id}","starred_url":"https://api.github.com/users/adidahiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adidahiya/subscriptions","organizations_url":"https://api.github.com/users/adidahiya/orgs","repos_url":"https://api.github.com/users/adidahiya/repos","events_url":"https://api.github.com/users/adidahiya/events{/privacy}","received_events_url":"https://api.github.com/users/adidahiya/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T14:32:04Z","updated_at":"2015-10-08T14:32:04Z","body":"nice! how about `no-default-type-param` as the rule name?"}}