A simple typescript of the existing @paystack/inline-js
npm install paystack-inline-tsA TypeScript wrapper for the Paystack Inline JS library.
paystack-inline-ts is a TypeScript-friendly wrapper around the @paystack/inline-js library. It provides type definitions and a more robust development experience for TypeScript users who want to integrate Paystack's payment solutions into their projects.
- Full TypeScript support for Paystack Inline JS
- Type definitions for Paystack options and response objects
- Seamless integration with existing TypeScript projects
- Improved IDE autocompletion and type checking
You can install paystack-inline-ts using npm:
``bash`
npm install paystack-inline-ts
Here's a basic example of how to use paystack-inline-ts:
`typescript`
import PaystackPop { ResumeTransactionOptions } from 'paystack-inline-ts';
Then you can follow with how things are done in the official documentation
1. Type Safety: Catch potential errors at compile-time rather than runtime.
2. Better Developer Experience: Enjoy autocompletion and inline documentation in your IDE.
3. Easier Integration: Seamlessly integrate Paystack payments into your TypeScript projects.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
This package is a TypeScript wrapper around the official @paystack/inline-js` library. All credit for the underlying functionality goes to the Paystack team.