Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
mwamedacen committed Jan 17, 2023
1 parent eded4e6 commit 0b6a9d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,4 +341,5 @@ export const isDestTokenTransferFeeToBeExchanged = (
return !!(transferFees.destFee || transferFees.destDexFee);
};

export const isTruthy = <T>(x: T | undefined | null): x is T => !!x;
export const isTruthy = <T>(x: T | undefined | null | '' | false): x is T =>
!!x;

0 comments on commit 0b6a9d1

Please sign in to comment.