From 2f868fb8ded76e82748ac8c28d8bfe6e01484092 Mon Sep 17 00:00:00 2001 From: zhouzhou626 <255877794+zhouzhou626@users.noreply.github.com> Date: Wed, 20 May 2026 04:10:25 +0800 Subject: [PATCH] docs(money): add missing throws sections --- website/docs/api/bigint-money/createBigIntMoney/add.md | 4 ++++ website/docs/api/bigint-money/createBigIntMoney/methods.md | 6 +++++- website/docs/api/bignumber.js/createBigNumberMoney/add.md | 4 ++++ .../docs/api/bignumber.js/createBigNumberMoney/methods.md | 4 ++++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/website/docs/api/bigint-money/createBigIntMoney/add.md b/website/docs/api/bigint-money/createBigIntMoney/add.md index 3e2aac1..5207539 100644 --- a/website/docs/api/bigint-money/createBigIntMoney/add.md +++ b/website/docs/api/bigint-money/createBigIntMoney/add.md @@ -20,6 +20,10 @@ Additions can be performed using add(). `money` ([BigIntMoneyBase](Description.md#bigintmoneybase)) +#### Throws + +`TypeError` - throws if currencies aren't identical + **Example** diff --git a/website/docs/api/bigint-money/createBigIntMoney/methods.md b/website/docs/api/bigint-money/createBigIntMoney/methods.md index 37b4cb1..bbb3f46 100644 --- a/website/docs/api/bigint-money/createBigIntMoney/methods.md +++ b/website/docs/api/bigint-money/createBigIntMoney/methods.md @@ -19,6 +19,10 @@ Additions can be performed using add(). `money` ([BigIntMoneyBase](Description.md#bigintmoneybase)) +#### Throws + +`TypeError` - throws if currencies aren't identical + **Example** @@ -548,4 +552,4 @@ const result = money.subtract(money2); result.getAmount(); // => -1n -``` \ No newline at end of file +``` diff --git a/website/docs/api/bignumber.js/createBigNumberMoney/add.md b/website/docs/api/bignumber.js/createBigNumberMoney/add.md index 1cd6add..889549f 100644 --- a/website/docs/api/bignumber.js/createBigNumberMoney/add.md +++ b/website/docs/api/bignumber.js/createBigNumberMoney/add.md @@ -19,6 +19,10 @@ Additions can be performed using add(). `money` ([MoneyBase](Description.md#moneybase)) +#### Throws + +`TypeError` - throws if currencies aren't identical + #### Example ```js diff --git a/website/docs/api/bignumber.js/createBigNumberMoney/methods.md b/website/docs/api/bignumber.js/createBigNumberMoney/methods.md index 55eae30..fe9a0b7 100644 --- a/website/docs/api/bignumber.js/createBigNumberMoney/methods.md +++ b/website/docs/api/bignumber.js/createBigNumberMoney/methods.md @@ -43,6 +43,10 @@ Additions can be performed using add(). `money` ([MoneyBase](Description.md#moneybase)) +#### Throws + +`TypeError` - throws if currencies aren't identical + #### Example ```js