Skip to content

Commit

Permalink
docs(readme): fix imports in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
carpasse committed Feb 27, 2024
1 parent 9964e22 commit f617620
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install -D @carpasse/dapi
To create an `DapiWrapper` you need to create an [`DapiDefinition`](#dapidefinition) object and pass it to the [`createDapi`](#createdapi) factory function.

```Typescript
import {createDapi} from '@carpasse/';
import {createDapi} from '@carpasse/dapi';

type Dependencies = {
db: OracleClient,
Expand Down Expand Up @@ -153,7 +153,7 @@ export const createCustomer = async (
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.

```Typescript
import {createDapi, DapiFn} from '@carpasse/';
import {createDapi, DapiFn} from '@carpasse/dapi';
import type {DapiUser, UserData} from './user';
import type {Logger} from './logger';
import type {RabbitMQ} from './mqBroker';
Expand Down Expand Up @@ -445,7 +445,7 @@ Adds a decorator to a `DapiFn` of the `DapiWrapper` instance.
**Example**

```Typescript
import {createDapi} from '@carpasse/';
import {createDapi} from '@carpasse/dapi';
import {profile} from './profiler';
import {createPerson} from './person';
Expand Down

0 comments on commit f617620

Please sign in to comment.