From 889ccd6799789844b6f07b22a6296beb2c03d69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kre=C5=A1imir=20Klas?= Date: Wed, 13 Oct 2021 16:54:56 +0200 Subject: [PATCH] [token][js]: add missing checked instruction method declarations to module.d.ts (#2484) The following methods: - createApproveCheckedInstruction - createMintToCheckedInstruction - createBurnCheckedInstruction - createSyncNativeInstruction are missing from the `module.d.ts` file which means they won't be included in the `lib/index.d.ts` module declaration file and therefore cannot be referenced to when using the package with typescript. Added the missing declarations. --- token/js/module.d.ts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/token/js/module.d.ts b/token/js/module.d.ts index 73b120c1a5d..51330ffca4a 100644 --- a/token/js/module.d.ts +++ b/token/js/module.d.ts @@ -257,6 +257,38 @@ declare module '@solana/spl-token' { amount: number | u64, decimals: number, ): TransactionInstruction; + static createApproveCheckedInstruction( + programId: PublicKey, + account: PublicKey, + mint: PublicKey, + delegate: PublicKey, + owner: PublicKey, + multiSigners: Array, + amount: number | u64, + decimals: number, + ): TransactionInstruction; + static createMintToCheckedInstruction( + programId: PublicKey, + mint: PublicKey, + dest: PublicKey, + authority: PublicKey, + multiSigners: Array, + amount: number | u64, + decimals: number, + ): TransactionInstruction; + static createBurnCheckedInstruction( + programId: PublicKey, + mint: PublicKey, + account: PublicKey, + owner: PublicKey, + multiSigners: Array, + amount: number | u64, + decimals: number, + ): TransactionInstruction; + static createSyncNativeInstruction( + programId: PublicKey, + nativeAccount: PublicKey, + ): TransactionInstruction; static createAssociatedTokenAccountInstruction( associatedProgramId: PublicKey, programId: PublicKey,