fix: strip internal types from external declaration
This commit is contained in:
parent
69a4059da0
commit
44e3445a4d
|
@ -28,6 +28,7 @@ function generateConfig(configType, format) {
|
|||
generateTypescript
|
||||
? typescript({
|
||||
browserslist: false,
|
||||
tsconfig: './tsconfig.d.json',
|
||||
})
|
||||
: undefined,
|
||||
babel({
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -398,6 +398,7 @@ export type StakeInstructionType =
|
|||
|
||||
/**
|
||||
* An enumeration of valid stake InstructionType's
|
||||
* @internal
|
||||
*/
|
||||
export const STAKE_INSTRUCTION_LAYOUTS: {
|
||||
[type in StakeInstructionType]: InstructionType;
|
||||
|
|
|
@ -546,6 +546,7 @@ export type SystemInstructionType =
|
|||
|
||||
/**
|
||||
* An enumeration of valid system InstructionType's
|
||||
* @internal
|
||||
*/
|
||||
export const SYSTEM_INSTRUCTION_LAYOUTS: {
|
||||
[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;
|
||||
publicKey: PublicKey;
|
||||
};
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"stripInternal": true,
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue