Skip to content

Commit

Permalink
Omit build | simulate | submit from aptos namespace (#249)
Browse files Browse the repository at this point in the history
omit build | simulate | submit from aptos namespace
  • Loading branch information
0xmaayan authored Jan 4, 2024
1 parent 1fff35b commit 93fceec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to the Aptos TypeScript SDK will be captured in this file. T

# Unreleased

- Omit `"build" | "simulate" | "submit"` from `aptos` namespace

# 1.3.0 (2024-01-03)

- [`Breaking`] Capitalize `TransactionPayloadMultiSig` type
Expand Down
5 changes: 3 additions & 2 deletions src/api/aptos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export class Aptos {
}
}

// extends Aptos interface so all the methods and properties from the other classes will be recognized by typescript.
// extends Aptos interface so all the methods and properties
// from the other classes will be recognized by typescript.
export interface Aptos
extends Account,
ANS,
Expand All @@ -69,7 +70,7 @@ export interface Aptos
FungibleAsset,
General,
Staking,
Transaction {}
Omit<Transaction, "build" | "simulate" | "submit"> {}

/**
In TypeScript, we can’t inherit or extend from more than one class,
Expand Down

0 comments on commit 93fceec

Please sign in to comment.