Skip to content

Commit

Permalink
fix: export (additional) underlying types for RPC 0.7
Browse files Browse the repository at this point in the history
new types have been introduced in that branches that are under exported
type but not themselves exported. This PR proposes to export them also
so that users can easily build content and document their code.
  • Loading branch information
0xknwn committed Apr 23, 2024
1 parent e992396 commit b2bbcb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/api/rpcspec_0_7/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,11 @@ export type COMMON_RECEIPT_PROPERTIES = {
execution_resources: EXECUTION_RESOURCES;
} & (SUCCESSFUL_COMMON_RECEIPT_PROPERTIES | REVERTED_COMMON_RECEIPT_PROPERTIES);

type SUCCESSFUL_COMMON_RECEIPT_PROPERTIES = {
export type SUCCESSFUL_COMMON_RECEIPT_PROPERTIES = {
execution_status: 'SUCCEEDED';
};

type REVERTED_COMMON_RECEIPT_PROPERTIES = {
export type REVERTED_COMMON_RECEIPT_PROPERTIES = {
execution_status: 'REVERTED';
revert_reason: string;
};
Expand Down

0 comments on commit b2bbcb4

Please sign in to comment.