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:e8b54d59-4c05-bc5f-8541-57c9cd04cdac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D77C:7271A:2128ECF:2D0CC80:698079BC |
| html-safe-nonce | 546fdab65acdd9e732013f25e122dbd547f0bd86c9a551196541f4b81b4c76dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzdDOjcyNzFBOjIxMjhFQ0Y6MkQwQ0M4MDo2OTgwNzlCQyIsInZpc2l0b3JfaWQiOiI0ODY3OTk5MTI0Mjc3OTgzNjc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1b567c966d5a532704819f25bceadad2cd9efda5349ea2a87ed83a34802e986d |
| 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 | 4590f1c00c56e5b3a3460b81e4236454a157a2159793b09a2ddee090670e75fb |
| 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 | 242fda17fe105562f9eb7fe91a7a0dca07c527b3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width