Skip to content

Commit

Permalink
feat(dinero.js): re-export createDinero
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahdayan committed Jul 26, 2021
1 parent ea9dcdd commit d8d149f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/dinero.js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type {
Transformer,
} from '@dinero.js/core';
export {
createDinero,
down,
halfAwayFromZero,
halfDown,
Expand Down
4 changes: 2 additions & 2 deletions website/data/docs/guides/using-different-amount-types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Dinero provides a `bigint` calculator for you to use out of the box. You can cre

```js
import { calculator } from '@dinero.js/calculator-bigint';
import { createDinero } from '@dinero.js/core';
import { createDinero } from 'dinero.js';

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

```js
import { createDinero } from '@dinero.js/core';
import { createDinero } from 'dinero.js';

// ...

Expand Down

1 comment on commit d8d149f

@vercel
Copy link

@vercel vercel bot commented on d8d149f Jul 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.