Skip to content

[BUG] Paystack Typescript import not constructable #4

@orimdominic

Description

@orimdominic

Describe the bug
Cannot construct object from Paystack import after following documentation

To Reproduce
Steps to reproduce the behavior:

  1. In a Node.js Typescript project, install @paystack/paystack-sdk
  2. Import the library following the documentation
import Paystack from '@paystack/paystack-sdk';
const paystack = new Paystack('secret);

Expected behavior
There should be no errors and the returned object from the Paystack constructor should have autocomplete suggestions

Screenshots
Screenshot from 2022-10-25 08-44-29

Additional context
Editor: VSCode
Node.js version: v16.17.1
Typescript version: ^4.7.4

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions