separate types

This commit is contained in:
Oli Sturm
2026-04-24 18:15:22 +01:00
parent b1ac745d70
commit d0c9466170
13 changed files with 178 additions and 221 deletions
-13
View File
@@ -1,16 +1,3 @@
/**
* @typedef {Object} Money
* @property {number} amount
*/
/**
* @param {number} amount
* @returns {Money}
*/
export const createMoney = (amount) => ({ amount });
/**
* @param {Money} money
* @returns {string}
*/
export const formatMoney = (money) => money.amount.toFixed(2);