Skip to content

Commit

Permalink
Type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagesh Pai committed Dec 23, 2024
1 parent d771416 commit 70a17fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/deposits/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ export const DepositsList = (): JSX.Element => {
try {
const {
exported_deposits: exportedDeposits,
}: { exported_deposits: number } = await apiFetch( {
} = await apiFetch< {
/** The total number of payouts that will be exported in the CSV */
exported_deposits: number;
} >( {
path: getDepositsCSV( {
userEmail,
locale,
Expand Down

0 comments on commit 70a17fb

Please sign in to comment.