Skip to content

Commit

Permalink
Merge pull request #30248 from software-mansion-labs/ts-migration/wal…
Browse files Browse the repository at this point in the history
…let-lib

[TS migration] Migrate 'Wallet.js' lib to TypeScript
  • Loading branch information
NikkiWines authored Jan 11, 2024
2 parents ca3c4db + 3f76f08 commit 46f011f
Show file tree
Hide file tree
Showing 9 changed files with 385 additions and 404 deletions.
3 changes: 2 additions & 1 deletion src/libs/GetPhysicalCardUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function getUpdatedDraftValues(draftValues: DraftValues, privatePersonalDetails:
* @param draftValues
* @returns
*/
function getUpdatedPrivatePersonalDetails(draftValues: DraftValues) {
function getUpdatedPrivatePersonalDetails(draftValues: DraftValues): PrivatePersonalDetails {
const {addressLine1, addressLine2, city, country, legalFirstName, legalLastName, phoneNumber, state, zipPostCode} = draftValues;
return {
legalFirstName,
Expand All @@ -127,3 +127,4 @@ function getUpdatedPrivatePersonalDetails(draftValues: DraftValues) {
}

export {getUpdatedDraftValues, getUpdatedPrivatePersonalDetails, goToNextPhysicalCardRoute, setCurrentRoute};
export type {PrivatePersonalDetails};
Loading

0 comments on commit 46f011f

Please sign in to comment.