Skip to content

Commit d8d149f

Browse files
committed
feat(dinero.js): re-export createDinero
1 parent ea9dcdd commit d8d149f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/dinero.js/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export type {
1111
Transformer,
1212
} from '@dinero.js/core';
1313
export {
14+
createDinero,
1415
down,
1516
halfAwayFromZero,
1617
halfDown,

website/data/docs/guides/using-different-amount-types.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Dinero provides a `bigint` calculator for you to use out of the box. You can cre
4242

4343
```js
4444
import { calculator } from '@dinero.js/calculator-bigint';
45-
import { createDinero } from '@dinero.js/core';
45+
import { createDinero } from 'dinero.js';
4646

4747
const dineroBigint = createDinero({ calculator });
4848
```
@@ -98,7 +98,7 @@ const calculator: Calculator<Big> = {
9898
Once you have your calculator, you can build a custom `dinero` function.
9999

100100
```js
101-
import { createDinero } from '@dinero.js/core';
101+
import { createDinero } from 'dinero.js';
102102

103103
// ...
104104

0 commit comments

Comments
 (0)