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:
parent
2b1a9a5a19
commit
85e4e09dc8
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue