fix: strip internal types from external declaration

This commit is contained in:
Justin Starry 2021-03-29 16:12:47 +08:00 committed by Justin Starry
parent 69a4059da0
commit 44e3445a4d
6 changed files with 12 additions and 3 deletions

View File

@ -28,6 +28,7 @@ function generateConfig(configType, format) {
generateTypescript
? typescript({
browserslist: false,
tsconfig: './tsconfig.d.json',
})
: undefined,
babel({

View File

@ -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(),

View File

@ -398,6 +398,7 @@ export type StakeInstructionType =
/**
* An enumeration of valid stake InstructionType's
* @internal
*/
export const STAKE_INSTRUCTION_LAYOUTS: {
[type in StakeInstructionType]: InstructionType;

View File

@ -546,6 +546,7 @@ export type SystemInstructionType =
/**
* An enumeration of valid system InstructionType's
* @internal
*/
export const SYSTEM_INSTRUCTION_LAYOUTS: {
[type in SystemInstructionType]: InstructionType;

View File

@ -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;
};

6
web3.js/tsconfig.d.json Normal file
View File

@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"stripInternal": true,
}
}