{"action":"closed","issue":{"url":"https://api.github.com/repos/vega/ts-json-schema-generator/issues/41","repository_url":"https://api.github.com/repos/vega/ts-json-schema-generator","labels_url":"https://api.github.com/repos/vega/ts-json-schema-generator/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/vega/ts-json-schema-generator/issues/41/comments","events_url":"https://api.github.com/repos/vega/ts-json-schema-generator/issues/41/events","html_url":"https://github.com/vega/ts-json-schema-generator/issues/41","id":346948543,"node_id":"MDU6SXNzdWUzNDY5NDg1NDM=","number":41,"title":"Cannot find name AsyncIterator/Iterable","user":{"login":"intellix","id":1162531,"node_id":"MDQ6VXNlcjExNjI1MzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1162531?v=4","gravatar_id":"","url":"https://api.github.com/users/intellix","html_url":"https://github.com/intellix","followers_url":"https://api.github.com/users/intellix/followers","following_url":"https://api.github.com/users/intellix/following{/other_user}","gists_url":"https://api.github.com/users/intellix/gists{/gist_id}","starred_url":"https://api.github.com/users/intellix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intellix/subscriptions","organizations_url":"https://api.github.com/users/intellix/orgs","repos_url":"https://api.github.com/users/intellix/repos","events_url":"https://api.github.com/users/intellix/events{/privacy}","received_events_url":"https://api.github.com/users/intellix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-02T10:16:16Z","updated_at":"2018-09-27T01:44:02Z","closed_at":"2018-09-27T01:44:02Z","author_association":"NONE","body":"Trying to use this on a simple file: environment.token.ts:\r\n```ts\r\nexport interface EnvConfig {\r\n  production: boolean;\r\n  apiEndpoint: string;\r\n}\r\n```\r\n\r\nGetting an error when running: \r\n```sh\r\n$ ts-json-schema-generator --path src/app/core/environment.token.ts --type EnvConfig\r\n/Sites/mysite/node_modules/@types/graphql/subscription/subscribe.d.ts(17,12): error TS2304: Cannot find name 'AsyncIterator'.\r\n/Sites/mysite/node_modules/@types/graphql/subscription/subscribe.d.ts(29,12): error TS2304: Cannot find name 'AsyncIterable'.\r\n```\r\n\r\nMy tsconfig.json looks like the following (from an Angular CLI project):\r\n\r\n```json\r\n{\r\n  \"compileOnSave\": false,\r\n  \"compilerOptions\": {\r\n    \"paths\": {\r\n      \"app/*\": [\"./app/*\"]\r\n    },\r\n    \"baseUrl\": \"./src\",\r\n    \"outDir\": \"./dist/out-tsc\",\r\n    \"sourceMap\": true,\r\n    \"declaration\": false,\r\n    \"module\": \"es2015\",\r\n    \"moduleResolution\": \"node\",\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true,\r\n    \"alwaysStrict\": true,\r\n    \"noImplicitAny\": true,\r\n    \"noImplicitThis\": true,\r\n    \"noUnusedLocals\": true,\r\n    \"noUnusedParameters\": true,\r\n    \"target\": \"es5\",\r\n    \"lib\": [\r\n      \"es2017\",\r\n      \"dom\",\r\n      \"esnext.asynciterable\"\r\n    ],\r\n    \"plugins\": [{\r\n      \"name\": \"@angular/language-service\"\r\n    }]\r\n  }\r\n}\r\n```\r\n\r\nIt seems to be reading the whole project despite only giving it a single file"}}
{"actor":{"display_login":"domoritz"}}