Skip to content

Commit

Permalink
Export type
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Nov 8, 2024
1 parent 8c5e9ef commit af37f2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/stacks-api/transactions/mempool-transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ type Args = {
} & ApiRequestOptions &
ApiPaginationOptions;

export type MempoolTransactionsResponse = ListResponse<MempoolTransaction>;

export async function mempoolTransactions(
args: Args,
): Promise<
SafeResult<
ListResponse<MempoolTransaction>,
MempoolTransactionsResponse,
SafeError<
"FetchMempoolTransactionsError" | "ParseBodyError" | "ValidateDataError"
>
Expand Down Expand Up @@ -95,5 +97,5 @@ export async function mempoolTransactions(
});
}

return success(data as ListResponse<MempoolTransaction>);
return success(data as MempoolTransactionsResponse);
}

0 comments on commit af37f2d

Please sign in to comment.