Skip to content

Commit f617620

Browse files
committed
docs(readme): fix imports in examples
1 parent 9964e22 commit f617620

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install -D @carpasse/dapi
1515
To create an `DapiWrapper` you need to create an [`DapiDefinition`](#dapidefinition) object and pass it to the [`createDapi`](#createdapi) factory function.
1616

1717
```Typescript
18-
import {createDapi} from '@carpasse/';
18+
import {createDapi} from '@carpasse/dapi';
1919

2020
type Dependencies = {
2121
db: OracleClient,
@@ -153,7 +153,7 @@ export const createCustomer = async (
153153
Ideally you should pass a `createUser` fn with its dependencies already set to the `createCustomer` fn. This way, the `createCustomer` fn does not need to know about the dependencies of the `createPerson` fn. It only needs to know about the dependencies it needs to do its job.
154154

155155
```Typescript
156-
import {createDapi, DapiFn} from '@carpasse/';
156+
import {createDapi, DapiFn} from '@carpasse/dapi';
157157
import type {DapiUser, UserData} from './user';
158158
import type {Logger} from './logger';
159159
import type {RabbitMQ} from './mqBroker';
@@ -445,7 +445,7 @@ Adds a decorator to a `DapiFn` of the `DapiWrapper` instance.
445445
**Example**
446446

447447
```Typescript
448-
import {createDapi} from '@carpasse/';
448+
import {createDapi} from '@carpasse/dapi';
449449
import {profile} from './profiler';
450450
import {createPerson} from './person';
451451

0 commit comments

Comments
 (0)