{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3930","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3930/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3930/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3930/events","html_url":"https://github.com/Microsoft/TypeScript/issues/3930","id":96072120,"number":3930,"title":"using noLib results in a number of intrinsic errors on empty file","user":{"login":"jbrantly","id":196944,"avatar_url":"https://avatars.githubusercontent.com/u/196944?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrantly","html_url":"https://github.com/jbrantly","followers_url":"https://api.github.com/users/jbrantly/followers","following_url":"https://api.github.com/users/jbrantly/following{/other_user}","gists_url":"https://api.github.com/users/jbrantly/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrantly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrantly/subscriptions","organizations_url":"https://api.github.com/users/jbrantly/orgs","repos_url":"https://api.github.com/users/jbrantly/repos","events_url":"https://api.github.com/users/jbrantly/events{/privacy}","received_events_url":"https://api.github.com/users/jbrantly/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/By%20Design","name":"By Design","color":"fbca04"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Question","name":"Question","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-20T14:08:18Z","updated_at":"2015-07-21T19:30:06Z","closed_at":"2015-07-21T12:37:51Z","body":"This may be intended but wanted to bring it up for discussion. If I create an empty TypeScript file and call `tsc app.ts` everything is fine, but if I use `tsc app.ts --noLib` I see:\r\n\r\nerror TS2318: Cannot find global type 'Array'.\r\nerror TS2318: Cannot find global type 'Boolean'.\r\nerror TS2318: Cannot find global type 'Function'.\r\nerror TS2318: Cannot find global type 'IArguments'.\r\nerror TS2318: Cannot find global type 'Number'.\r\nerror TS2318: Cannot find global type 'Object'.\r\nerror TS2318: Cannot find global type 'RegExp'.\r\nerror TS2318: Cannot find global type 'String'.\r\n\r\nSo is the intention that if you use --noLib you must specify your own lib file that declares these items as a bare minimum?"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/123454909","html_url":"https://github.com/Microsoft/TypeScript/issues/3930#issuecomment-123454909","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3930","id":123454909,"user":{"login":"ilbmiller","id":10309619,"avatar_url":"https://avatars.githubusercontent.com/u/10309619?v=3","gravatar_id":"","url":"https://api.github.com/users/ilbmiller","html_url":"https://github.com/ilbmiller","followers_url":"https://api.github.com/users/ilbmiller/followers","following_url":"https://api.github.com/users/ilbmiller/following{/other_user}","gists_url":"https://api.github.com/users/ilbmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/ilbmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilbmiller/subscriptions","organizations_url":"https://api.github.com/users/ilbmiller/orgs","repos_url":"https://api.github.com/users/ilbmiller/repos","events_url":"https://api.github.com/users/ilbmiller/events{/privacy}","received_events_url":"https://api.github.com/users/ilbmiller/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T19:30:06Z","updated_at":"2015-07-21T19:30:06Z","body":"Thx Ryan - but I'm a bit unclear as to how to go about 'adding the path to the lib.d.ts file you want'?  Can you show an example invocation of 'tsc' that uses lib.core.d.ts in conjunction with a --noLib flag?\r\nIn other words, here is my 1.5.3 experiment:`\r\ntouch foo.ts\r\ntsc --noLib foo.ts                 // get TS 2318 errors, so how do I get lib.core.d.ts in the 'path'?\r\n`\r\nOf course, 'tsc foo.ts' works just fine.   "}}