{"action":"created","issue":{"url":"https://api.github.com/repos/graphile/postgraphile/issues/520","repository_url":"https://api.github.com/repos/graphile/postgraphile","labels_url":"https://api.github.com/repos/graphile/postgraphile/issues/520/labels{/name}","comments_url":"https://api.github.com/repos/graphile/postgraphile/issues/520/comments","events_url":"https://api.github.com/repos/graphile/postgraphile/issues/520/events","html_url":"https://github.com/graphile/postgraphile/issues/520","id":244181215,"node_id":"MDU6SXNzdWUyNDQxODEyMTU=","number":520,"title":"How to import postgraphql in a TypeScript project?","user":{"login":"zopf","id":640108,"node_id":"MDQ6VXNlcjY0MDEwOA==","avatar_url":"https://avatars1.githubusercontent.com/u/640108?v=4","gravatar_id":"","url":"https://api.github.com/users/zopf","html_url":"https://github.com/zopf","followers_url":"https://api.github.com/users/zopf/followers","following_url":"https://api.github.com/users/zopf/following{/other_user}","gists_url":"https://api.github.com/users/zopf/gists{/gist_id}","starred_url":"https://api.github.com/users/zopf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zopf/subscriptions","organizations_url":"https://api.github.com/users/zopf/orgs","repos_url":"https://api.github.com/users/zopf/repos","events_url":"https://api.github.com/users/zopf/events{/privacy}","received_events_url":"https://api.github.com/users/zopf/received_events","type":"User","site_admin":false},"labels":[{"id":408989387,"node_id":"MDU6TGFiZWw0MDg5ODkzODc=","url":"https://api.github.com/repos/graphile/postgraphile/labels/add-to-docs","name":"add-to-docs","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2017-07-19T21:34:04Z","updated_at":"2018-07-21T16:48:42Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I am fairly new to TypeScript, so forgive me if I'm making a newbie mistake.\r\n\r\nI am attempting to import the `postgraphql` module in my `index.ts` file, like so:\r\n\r\n```\r\nimport * as postgraphql from 'postgraphql';\r\n```\r\n\r\nTypeScript is telling me that `Module ''postgraphql'' resolves to a non-module entity and cannot be imported using this construct.`\r\n\r\nFor my other imports, I installed their typings using e.g. `npm install --save-dev @types/underscore`, but it does not appear there is a `@types/postgraphql` module.  These typings come from https://github.com/DefinitelyTyped/DefinitelyTyped.\r\n\r\nHow do I go about setting up the proper typings for the `postgraphql` module so that I can use it in a TypeScript project?"},"comment":{"url":"https://api.github.com/repos/graphile/postgraphile/issues/comments/406809122","html_url":"https://github.com/graphile/postgraphile/issues/520#issuecomment-406809122","issue_url":"https://api.github.com/repos/graphile/postgraphile/issues/520","id":406809122,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjgwOTEyMg==","user":{"login":"benjie","id":129910,"node_id":"MDQ6VXNlcjEyOTkxMA==","avatar_url":"https://avatars2.githubusercontent.com/u/129910?v=4","gravatar_id":"","url":"https://api.github.com/users/benjie","html_url":"https://github.com/benjie","followers_url":"https://api.github.com/users/benjie/followers","following_url":"https://api.github.com/users/benjie/following{/other_user}","gists_url":"https://api.github.com/users/benjie/gists{/gist_id}","starred_url":"https://api.github.com/users/benjie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjie/subscriptions","organizations_url":"https://api.github.com/users/benjie/orgs","repos_url":"https://api.github.com/users/benjie/repos","events_url":"https://api.github.com/users/benjie/events{/privacy}","received_events_url":"https://api.github.com/users/benjie/received_events","type":"User","site_admin":false},"created_at":"2018-07-21T16:48:42Z","updated_at":"2018-07-21T16:48:42Z","author_association":"MEMBER","body":"Should be able to pull `PostGraphileOptions` from postgraphile in the new release 🎉 "}}
{"actor":{"display_login":"benjie"}}