{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8099","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8099/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8099/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8099/events","html_url":"https://github.com/Microsoft/TypeScript/issues/8099","id":148468174,"number":8099,"title":"Creating an interface with a symbol?","user":{"login":"blesh","id":1540597,"avatar_url":"https://avatars.githubusercontent.com/u/1540597?v=3","gravatar_id":"","url":"https://api.github.com/users/blesh","html_url":"https://github.com/blesh","followers_url":"https://api.github.com/users/blesh/followers","following_url":"https://api.github.com/users/blesh/following{/other_user}","gists_url":"https://api.github.com/users/blesh/gists{/gist_id}","starred_url":"https://api.github.com/users/blesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blesh/subscriptions","organizations_url":"https://api.github.com/users/blesh/orgs","repos_url":"https://api.github.com/users/blesh/repos","events_url":"https://api.github.com/users/blesh/events{/privacy}","received_events_url":"https://api.github.com/users/blesh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-04-14T20:06:12Z","updated_at":"2016-04-14T22:19:23Z","closed_at":null,"body":"<!--\r\nThank you for contributing to TypeScript! Please review this checklist\r\n       before submitting your issue.\r\n[ ] Many common issues and suggestions are addressed in the FAQ\r\n     https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n[ ] Search for duplicates before logging new issues\r\n    https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue\r\n[ ] Questions are best asked and answered at Stack Overflow\r\n    http://stackoverflow.com/questions/tagged/typescript\r\n\r\nFor bug reports, please include the information below.\r\n__________________________________________________________ -->\r\n\r\n**TypeScript Version:** \r\n\r\n1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217)\r\n\r\n**Code**\r\n\r\n```ts\r\n// try augmenting the SymbolContructor to have some expected symbol on it.\r\n// in RxJS5's case, it'll be the Symbol.observable symbol from the es-observable spec.\r\ninterface SymbolConstructor {\r\n  observable: symbol;\r\n}\r\n\r\ninterface Observablesque<T> {\r\n  [Symbol.observable]: () => Subscribable<T>\r\n}\r\n```\r\n\r\nor \r\n\r\n```ts\r\n// try importing some symbol reference (I get why this might not work)\r\nimport {$$observable} from './symbol/observable';\r\n\r\ninterface Observablesque<T> {\r\n  [$$observable]: () => Subscribable<T>\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nI should be able to enforce types that have symbols on them, custom or otherwise.\r\n\r\n**Actual behavior:** \r\n\r\nI get really confused and go get myself a coffee."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/210178848","html_url":"https://github.com/Microsoft/TypeScript/issues/8099#issuecomment-210178848","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8099","id":210178848,"user":{"login":"blesh","id":1540597,"avatar_url":"https://avatars.githubusercontent.com/u/1540597?v=3","gravatar_id":"","url":"https://api.github.com/users/blesh","html_url":"https://github.com/blesh","followers_url":"https://api.github.com/users/blesh/followers","following_url":"https://api.github.com/users/blesh/following{/other_user}","gists_url":"https://api.github.com/users/blesh/gists{/gist_id}","starred_url":"https://api.github.com/users/blesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blesh/subscriptions","organizations_url":"https://api.github.com/users/blesh/orgs","repos_url":"https://api.github.com/users/blesh/repos","events_url":"https://api.github.com/users/blesh/events{/privacy}","received_events_url":"https://api.github.com/users/blesh/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T22:19:23Z","updated_at":"2016-04-14T22:19:23Z","body":"> I believe if you're using nightlies, you could avoid targeting ES6 and use --lib es6.\r\n\r\nWhat is this and how does it benefit us?"}}