{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/185","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/185/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/185/events","html_url":"https://github.com/Microsoft/TypeScript/issues/185","id":38371438,"number":185,"title":"Suggestion: non-nullable type","user":{"login":"fdecampredon","id":864201,"avatar_url":"https://avatars.githubusercontent.com/u/864201?v=3","gravatar_id":"","url":"https://api.github.com/users/fdecampredon","html_url":"https://github.com/fdecampredon","followers_url":"https://api.github.com/users/fdecampredon/followers","following_url":"https://api.github.com/users/fdecampredon/following{/other_user}","gists_url":"https://api.github.com/users/fdecampredon/gists{/gist_id}","starred_url":"https://api.github.com/users/fdecampredon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdecampredon/subscriptions","organizations_url":"https://api.github.com/users/fdecampredon/orgs","repos_url":"https://api.github.com/users/fdecampredon/repos","events_url":"https://api.github.com/users/fdecampredon/events{/privacy}","received_events_url":"https://api.github.com/users/fdecampredon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Needs%20Proposal","name":"Needs Proposal","color":"556b75"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":247,"created_at":"2014-07-22T06:01:58Z","updated_at":"2015-07-22T13:11:36Z","closed_at":null,"body":"Introduce two new syntax for type declaration based on JSDoc\r\n\r\n```typescript\r\nvar myString: !string = 'hello world'; //non-nullable\r\nvar myString1: ?string = 'hello world'; // nullable \r\nvar myString2: string = 'hello world'; // nullable \r\nvar myString3 = 'hello world'; // nullable\r\n```\r\nby default type are nullable.\r\n\r\nTwo new compiler flag : \r\n* `inferNonNullableType` make the compiler infer non-nullable type  : \r\n```typescript\r\nvar myString3 = 'hello world' // typeof myString is '!string', non-nullable\r\n```\r\n* `nonNullableTypeByDefault` (I guess there might be a better name) : \r\n```typescript\r\nvar myString: !string = 'hello world'; // non-nullable\r\nvar myString1: string = 'hello world'; // non-nullable \r\nvar myString2: ?string = 'hello world'; // nullable \r\nvar myString3 = 'hello world' // non-nullable\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/123715013","html_url":"https://github.com/Microsoft/TypeScript/issues/185#issuecomment-123715013","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/185","id":123715013,"user":{"login":"aleksey-bykov","id":937933,"avatar_url":"https://avatars.githubusercontent.com/u/937933?v=3","gravatar_id":"","url":"https://api.github.com/users/aleksey-bykov","html_url":"https://github.com/aleksey-bykov","followers_url":"https://api.github.com/users/aleksey-bykov/followers","following_url":"https://api.github.com/users/aleksey-bykov/following{/other_user}","gists_url":"https://api.github.com/users/aleksey-bykov/gists{/gist_id}","starred_url":"https://api.github.com/users/aleksey-bykov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleksey-bykov/subscriptions","organizations_url":"https://api.github.com/users/aleksey-bykov/orgs","repos_url":"https://api.github.com/users/aleksey-bykov/repos","events_url":"https://api.github.com/users/aleksey-bykov/events{/privacy}","received_events_url":"https://api.github.com/users/aleksey-bykov/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T13:11:36Z","updated_at":"2015-07-22T13:11:36Z","body":"type *void* doesn't have any values but both `null` and `undefined` values are assignable to it"}}