You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ npm install -D @carpasse/dapi
15
15
To create an `DapiWrapper` you need to create an [`DapiDefinition`](#dapidefinition) object and pass it to the [`createDapi`](#createdapi) factory function.
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.
154
154
155
155
```Typescript
156
-
import {createDapi, DapiFn} from'@carpasse/';
156
+
import {createDapi, DapiFn} from'@carpasse/dapi';
157
157
importtype {DapiUser, UserData} from'./user';
158
158
importtype {Logger} from'./logger';
159
159
importtype {RabbitMQ} from'./mqBroker';
@@ -445,7 +445,7 @@ Adds a decorator to a `DapiFn` of the `DapiWrapper` instance.
0 commit comments