Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(readme): fix imports in examples #22

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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