Skip to content

Commit 7343716

Browse files
authored
Merge pull request #67 from gempain/bug/prototype-undefined
Clarify docs
2 parents 359175e + 9f20013 commit 7343716

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.json]
12+
indent_size = 2

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ export class Photo {
581581

582582
id: number;
583583

584+
@Type(() => Date)
584585
@Transform(value => moment(value), { toClassOnly: true })
585586
date: Moment;
586587
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
],
2727
"dependencies": {},
2828
"devDependencies": {
29+
"@types/moment": "^2.13.0",
2930
"@types/chai": "^3.4.34",
3031
"@types/es6-shim": "^0.31.32",
3132
"@types/mocha": "^2.2.33",

0 commit comments

Comments
 (0)