{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6579","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6579/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6579/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6579/events","html_url":"https://github.com/Microsoft/TypeScript/issues/6579","id":128264906,"node_id":"MDU6SXNzdWUxMjgyNjQ5MDY=","number":6579,"title":"Suggestion: Regex-validated string type","user":{"login":"tenry92","id":11708191,"node_id":"MDQ6VXNlcjExNzA4MTkx","avatar_url":"https://avatars3.githubusercontent.com/u/11708191?v=4","gravatar_id":"","url":"https://api.github.com/users/tenry92","html_url":"https://github.com/tenry92","followers_url":"https://api.github.com/users/tenry92/followers","following_url":"https://api.github.com/users/tenry92/following{/other_user}","gists_url":"https://api.github.com/users/tenry92/gists{/gist_id}","starred_url":"https://api.github.com/users/tenry92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenry92/subscriptions","organizations_url":"https://api.github.com/users/tenry92/orgs","repos_url":"https://api.github.com/users/tenry92/repos","events_url":"https://api.github.com/users/tenry92/events{/privacy}","received_events_url":"https://api.github.com/users/tenry92/received_events","type":"User","site_admin":false},"labels":[{"id":306536864,"node_id":"MDU6TGFiZWwzMDY1MzY4NjQ=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Domain:%20Literal%20Types","name":"Domain: Literal Types","color":"FB3A4B","default":false},{"id":114201833,"node_id":"MDU6TGFiZWwxMTQyMDE4MzM=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Needs%20Proposal","name":"Needs Proposal","color":"556b75","default":false},{"id":113971155,"node_id":"MDU6TGFiZWwxMTM5NzExNTU=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":36,"created_at":"2016-01-22T22:50:35Z","updated_at":"2018-06-27T11:31:17Z","closed_at":null,"author_association":"NONE","body":"There are cases, where a property can not just be any string (or a set of strings), but needs to match a pattern.\n\n``` typescript\nlet fontStyle: 'normal' | 'italic' = 'normal'; // already available in master\nlet fontColor: /^#([0-9a-f]{3}|[0-9a-f]{6})$/i = '#000'; // my suggestion\n```\n\nIt's common practice in JavaScript to store color values in css notation, such as in the css style reflection of DOM nodes or various 3rd party libraries.\n\nWhat do you think?\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/400640170","html_url":"https://github.com/Microsoft/TypeScript/issues/6579#issuecomment-400640170","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6579","id":400640170,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDY0MDE3MA==","user":{"login":"AndrewEastwood","id":1483306,"node_id":"MDQ6VXNlcjE0ODMzMDY=","avatar_url":"https://avatars3.githubusercontent.com/u/1483306?v=4","gravatar_id":"","url":"https://api.github.com/users/AndrewEastwood","html_url":"https://github.com/AndrewEastwood","followers_url":"https://api.github.com/users/AndrewEastwood/followers","following_url":"https://api.github.com/users/AndrewEastwood/following{/other_user}","gists_url":"https://api.github.com/users/AndrewEastwood/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewEastwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewEastwood/subscriptions","organizations_url":"https://api.github.com/users/AndrewEastwood/orgs","repos_url":"https://api.github.com/users/AndrewEastwood/repos","events_url":"https://api.github.com/users/AndrewEastwood/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewEastwood/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T11:31:17Z","updated_at":"2018-06-27T11:31:17Z","author_association":"NONE","body":"Are those awesome improvements available? Maybe in alpha release at least?"}}
{"actor":{"display_login":"AndrewEastwood"}}