Skip to content

Commit

Permalink
fix: add return type to getPaddleInstance type def (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
danbillson authored Nov 6, 2024
1 parent 004f1e2 commit d1a0548
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

Check our main [developer changelog](https://developer.paddle.com/?utm_source=dx&utm_medium=paddle-js-wrapper) for information about changes to the Paddle Billing platform, the Paddle API, and other developer tools.

## 1.3.2-next.0 - 2024-11-06

### Fixed

- Add return type to `getPaddleInstance` type definition

---

## 1.3.1-next.0 - 2024-10-30

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paddle/paddle-js",
"version": "1.3.1-next.0",
"version": "1.3.2-next.0",
"description": "Wrapper to load Paddle.js as a module and use TypeScript definitions when working with methods.",
"main": "dist/index.js",
"module": "dist/index.esm.js",
Expand Down
5 changes: 4 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,7 @@ export type InitializePaddleOptions = PaddleSetupOptions & {
};

export function initializePaddle(options?: InitializePaddleOptions): Promise<Paddle | undefined>;
export function getPaddleInstance(version?: Version);
export function getPaddleInstance(version: 'v1'): Paddle | undefined;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function getPaddleInstance(version: 'classic'): any;
export function getPaddleInstance(): Paddle | undefined;

0 comments on commit d1a0548

Please # to comment.