Title: [BUG] Paystack Typescript import not constructable · Issue #4 · PaystackOSS/paystack-node · GitHub
Open Graph Title: [BUG] Paystack Typescript import not constructable · Issue #4 · PaystackOSS/paystack-node
X Title: [BUG] Paystack Typescript import not constructable · Issue #4 · PaystackOSS/paystack-node
Description: Describe the bug Cannot construct object from Paystack import after following documentation To Reproduce Steps to reproduce the behavior: In a Node.js Typescript project, install @paystack/paystack-sdk Import the library following the do...
Open Graph Description: Describe the bug Cannot construct object from Paystack import after following documentation To Reproduce Steps to reproduce the behavior: In a Node.js Typescript project, install @paystack/paystack...
X Description: Describe the bug Cannot construct object from Paystack import after following documentation To Reproduce Steps to reproduce the behavior: In a Node.js Typescript project, install @paystack/paystack...
Opengraph URL: https://github.com/PaystackOSS/paystack-node/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Paystack Typescript import not constructable","articleBody":"**Describe the bug**\r\nCannot construct object from Paystack import after following documentation\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. In a Node.js Typescript project, install `@paystack/paystack-sdk`\r\n2. Import the library following the documentation\r\n```ts\r\nimport Paystack from '@paystack/paystack-sdk';\r\nconst paystack = new Paystack('secret);\r\n```\r\n\r\n**Expected behavior**\r\nThere should be no errors and the returned object from the `Paystack` constructor should have autocomplete suggestions\r\n\r\n**Screenshots**\r\n\r\n\r\n**Additional context**\r\nEditor: VSCode\r\nNode.js version: v16.17.1\r\nTypescript version: ^4.7.4\r\n","author":{"url":"https://github.com/orimdominic","@type":"Person","name":"orimdominic"},"datePublished":"2022-10-25T07:52:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":24},"url":"https://github.com/4/paystack-node/issues/4"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:daec1a03-5ec1-6cb1-5f82-764780be49a6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C71E:3B35E8:297C56B:38A0101:69809ADD |
| html-safe-nonce | 5a77463d840ff0d58eeace5b6c2ec954184475005c5c49e88b7b5d1871ec3b89 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzFFOjNCMzVFODoyOTdDNTZCOjM4QTAxMDE6Njk4MDlBREQiLCJ2aXNpdG9yX2lkIjoiNzc0MTIxNzIzNDY2NzczOTg2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d042420a8ab142feee440d0fc268a6422af057da9c4b4d181bc6594d73392268 |
| hovercard-subject-tag | issue:1422025401 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PaystackOSS/paystack-node/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/255a8a8d8b9b1317376c54958c73533957944221da21653814479928d07acef7/PaystackOSS/paystack-node/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/255a8a8d8b9b1317376c54958c73533957944221da21653814479928d07acef7/PaystackOSS/paystack-node/issues/4 |
| og:image:alt | Describe the bug Cannot construct object from Paystack import after following documentation To Reproduce Steps to reproduce the behavior: In a Node.js Typescript project, install @paystack/paystack... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | orimdominic |
| hostname | github.com |
| expected-hostname | github.com |
| None | c56f5f95bb0c3376cbc3c4b222c4f5b1ec18eba52cfeb21288e62fd4b100bd85 |
| turbo-cache-control | no-preview |
| go-import | github.com/PaystackOSS/paystack-node git https://github.com/PaystackOSS/paystack-node.git |
| octolytics-dimension-user_id | 62539319 |
| octolytics-dimension-user_login | PaystackOSS |
| octolytics-dimension-repository_id | 456541281 |
| octolytics-dimension-repository_nwo | PaystackOSS/paystack-node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 456541281 |
| octolytics-dimension-repository_network_root_nwo | PaystackOSS/paystack-node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ffc0eec1a796e66c7f4ef486af4da95b7d6bc36b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width