fix: strip internal types from external declaration
This commit is contained in:
committed by
Justin Starry
parent
69a4059da0
commit
44e3445a4d
@ -28,6 +28,7 @@ function generateConfig(configType, format) {
|
|||||||
generateTypescript
|
generateTypescript
|
||||||
? typescript({
|
? typescript({
|
||||||
browserslist: false,
|
browserslist: false,
|
||||||
|
tsconfig: './tsconfig.d.json',
|
||||||
})
|
})
|
||||||
: undefined,
|
: undefined,
|
||||||
babel({
|
babel({
|
||||||
|
@ -1266,7 +1266,7 @@ const ParsedConfirmedTransactionMetaResult = pick({
|
|||||||
/**
|
/**
|
||||||
* Expected JSON RPC response for the "getConfirmedBlock" message
|
* Expected JSON RPC response for the "getConfirmedBlock" message
|
||||||
*/
|
*/
|
||||||
export const GetConfirmedBlockRpcResult = jsonRpcResult(
|
const GetConfirmedBlockRpcResult = jsonRpcResult(
|
||||||
nullable(
|
nullable(
|
||||||
pick({
|
pick({
|
||||||
blockhash: string(),
|
blockhash: string(),
|
||||||
|
@ -398,6 +398,7 @@ export type StakeInstructionType =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* An enumeration of valid stake InstructionType's
|
* An enumeration of valid stake InstructionType's
|
||||||
|
* @internal
|
||||||
*/
|
*/
|
||||||
export const STAKE_INSTRUCTION_LAYOUTS: {
|
export const STAKE_INSTRUCTION_LAYOUTS: {
|
||||||
[type in StakeInstructionType]: InstructionType;
|
[type in StakeInstructionType]: InstructionType;
|
||||||
|
@ -546,6 +546,7 @@ export type SystemInstructionType =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* An enumeration of valid system InstructionType's
|
* An enumeration of valid system InstructionType's
|
||||||
|
* @internal
|
||||||
*/
|
*/
|
||||||
export const SYSTEM_INSTRUCTION_LAYOUTS: {
|
export const SYSTEM_INSTRUCTION_LAYOUTS: {
|
||||||
[type in SystemInstructionType]: InstructionType;
|
[type in SystemInstructionType]: InstructionType;
|
||||||
|
@ -104,9 +104,9 @@ export class TransactionInstruction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* Pair of signature and corresponding public key
|
||||||
*/
|
*/
|
||||||
type SignaturePubkeyPair = {
|
export type SignaturePubkeyPair = {
|
||||||
signature: Buffer | null;
|
signature: Buffer | null;
|
||||||
publicKey: PublicKey;
|
publicKey: PublicKey;
|
||||||
};
|
};
|
||||||
|
6
web3.js/tsconfig.d.json
Normal file
6
web3.js/tsconfig.d.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"stripInternal": true,
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user