Add token properties to spl-token library module declaration files so downstream users can access them without having to bypass type checking (#672)

This commit is contained in:
Paul 2020-10-20 11:46:25 +02:00 committed by GitHub
parent 2b1a9a5a19
commit 85e4e09dc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,9 @@ declare module '@solana/spl-token' {
signer11: PublicKey;
};
export class Token {
publicKey: PublicKey;
programId: PublicKey;
payer: Account;
constructor(
connection: Connection,
publicKey: PublicKey,

View File

@ -54,6 +54,9 @@ declare module '@solana/spl-token' {
signer11: PublicKey,
|};
declare export class Token {
publicKey: PublicKey;
programId: PublicKey;
payer: Account;
constructor(
connection: Connection,
publicKey: PublicKey,