Skip to content

Commit

Permalink
ts: fix Wallet class declaration (#1363)
Browse files Browse the repository at this point in the history
  • Loading branch information
callensm authored Jan 31, 2022
1 parent 17c9463 commit 714f5e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ incremented for features.

## [Unreleased]

### Fixes

* ts: Fix the root type declaration of the `Wallet` / `NodeWallet` class. ([#1363](https://github.com/project-serum/anchor/pull/1363))

### Features

* lang: Add `seeds::program` constraint for specifying which program_id to use when deriving PDAs.([#1197](https://github.com/project-serum/anchor/pull/1197))
Expand Down
3 changes: 2 additions & 1 deletion ts/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import NodeWallet from "./nodewallet";
import { isBrowser } from "./utils/common.js";

export { default as BN } from "bn.js";
Expand All @@ -12,7 +13,7 @@ export * from "./program/index.js";
export * from "./spl/index.js";

export declare const workspace: any;
export declare const Wallet: import("./nodewallet").default;
export declare class Wallet extends NodeWallet {}

if (!isBrowser) {
exports.workspace = require("./workspace.js").default;
Expand Down

0 comments on commit 714f5e6

Please sign in to comment.