diff --git a/web3.js/rollup.config.js b/web3.js/rollup.config.js index 383268c7b3..808fb16ad1 100644 --- a/web3.js/rollup.config.js +++ b/web3.js/rollup.config.js @@ -28,6 +28,7 @@ function generateConfig(configType, format) { generateTypescript ? typescript({ browserslist: false, + tsconfig: './tsconfig.d.json', }) : undefined, babel({ diff --git a/web3.js/src/connection.ts b/web3.js/src/connection.ts index 4ebd699e70..7ae7c90b73 100644 --- a/web3.js/src/connection.ts +++ b/web3.js/src/connection.ts @@ -1266,7 +1266,7 @@ const ParsedConfirmedTransactionMetaResult = pick({ /** * Expected JSON RPC response for the "getConfirmedBlock" message */ -export const GetConfirmedBlockRpcResult = jsonRpcResult( +const GetConfirmedBlockRpcResult = jsonRpcResult( nullable( pick({ blockhash: string(), diff --git a/web3.js/src/stake-program.ts b/web3.js/src/stake-program.ts index ec07edfffa..00b3d99b85 100644 --- a/web3.js/src/stake-program.ts +++ b/web3.js/src/stake-program.ts @@ -398,6 +398,7 @@ export type StakeInstructionType = /** * An enumeration of valid stake InstructionType's + * @internal */ export const STAKE_INSTRUCTION_LAYOUTS: { [type in StakeInstructionType]: InstructionType; diff --git a/web3.js/src/system-program.ts b/web3.js/src/system-program.ts index b719461376..e358784a4a 100644 --- a/web3.js/src/system-program.ts +++ b/web3.js/src/system-program.ts @@ -546,6 +546,7 @@ export type SystemInstructionType = /** * An enumeration of valid system InstructionType's + * @internal */ export const SYSTEM_INSTRUCTION_LAYOUTS: { [type in SystemInstructionType]: InstructionType; diff --git a/web3.js/src/transaction.ts b/web3.js/src/transaction.ts index 872cb7fb4e..698310980e 100644 --- a/web3.js/src/transaction.ts +++ b/web3.js/src/transaction.ts @@ -104,9 +104,9 @@ export class TransactionInstruction { } /** - * @internal + * Pair of signature and corresponding public key */ -type SignaturePubkeyPair = { +export type SignaturePubkeyPair = { signature: Buffer | null; publicKey: PublicKey; }; diff --git a/web3.js/tsconfig.d.json b/web3.js/tsconfig.d.json new file mode 100644 index 0000000000..8283ec15d2 --- /dev/null +++ b/web3.js/tsconfig.d.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "stripInternal": true, + } +}