Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Acidiney Dias committed Oct 21, 2021
2 parents f0d6a55 + 1fb6bea commit 4b19374
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
15 changes: 7 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $ npm i node-dto
The `node-dto` package exports `MakeDto` function, that is a factory to generate your custom `Dto's`.

The `MakeDto` function receive an array of object with this schema:
```json
```
{
name: String,
serialize: String,
Expand Down Expand Up @@ -136,7 +136,7 @@ CreateUserDto.validate({
```

Returns:
```json
```
{
first_name: 'Acidiney',
Expand Down Expand Up @@ -204,8 +204,8 @@ Comes:
```js

CreateUserDto.export({
firstName: 'Acidiney',
lastName: 'Dias',
first_name: 'Acidiney',
last_name: 'Dias',
email: '[email protected]'
})

Expand All @@ -227,8 +227,7 @@ CreateUserDto.export([
```

Returns:
```json

```
{
firstName: 'Acidiney',
lastName: 'Dias',
Expand All @@ -239,7 +238,7 @@ Returns:

Or

```json
```
[
{
Expand Down Expand Up @@ -287,4 +286,4 @@ Thanks ^^

### Author

Acidiney Dias
Acidiney Dias
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,14 @@ module.exports = {
}`
);
}
<<<<<<< HEAD

return sql;
},
};
},
};
=======
}
}
>>>>>>> 1fb6beaf81dc6eee7b1bbbb52de1b2b964a71695

0 comments on commit 4b19374

Please sign in to comment.