Skip to content

Commit 27bdd42

Browse files
authored
remove wrong duplicated code in extending-data-types.md (#776)
1 parent bebe7be commit 27bdd42

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

docs/other-topics/extending-data-types.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,6 @@ export class MyDateType extends DataTypes.ABSTRACT<Date> {
9292
ValidationErrorItem.throwDataTypeValidationError('Value is an Invalid Date');
9393
}
9494
}
95-
96-
sanitize(value: unknown): unknown {
97-
if (typeof value === 'string') {
98-
return new Date(value);
99-
}
100-
}
10195
}
10296
```
10397

0 commit comments

Comments
 (0)