Skip to content

Commit

Permalink
fix: strip internal types from external declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Mar 29, 2021
1 parent 4b38881 commit a5a3b74
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function generateConfig(configType, format) {
generateTypescript
? typescript({
browserslist: false,
tsconfig: './tsconfig.d.json',
})
: undefined,
babel({
Expand Down
2 changes: 1 addition & 1 deletion src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 1 addition & 0 deletions src/stake-program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ export type StakeInstructionType =

/**
* An enumeration of valid stake InstructionType's
* @internal
*/
export const STAKE_INSTRUCTION_LAYOUTS: {
[type in StakeInstructionType]: InstructionType;
Expand Down
1 change: 1 addition & 0 deletions src/system-program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ export type SystemInstructionType =

/**
* An enumeration of valid system InstructionType's
* @internal
*/
export const SYSTEM_INSTRUCTION_LAYOUTS: {
[type in SystemInstructionType]: InstructionType;
Expand Down
4 changes: 2 additions & 2 deletions src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
6 changes: 6 additions & 0 deletions tsconfig.d.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"stripInternal": true,
}
}

0 comments on commit a5a3b74

Please sign in to comment.