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
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ There are some options to configure the transformer.
130
130
| Property | Description |
131
131
|--|--|
132
132
|`shortCircuit`| Boolean (default `false`). If `true`, all type guards will return `true`, i.e. no validation takes place. Can be used for example in production deployments where doing a lot of validation can cost too much CPU. |
133
-
|`ignoreClasses`| Boolean (default: `false`). If `true`, when the transformer encounters a class, it will ignore it and simply return `true`. If `false`, an error is generated at compile time. |
133
+
|`ignoreClasses`| Boolean (default: `false`). If `true`, when the transformer encounters a class (except for `Date`), it will ignore it and simply return `true`. If `false`, an error is generated at compile time. |
134
134
|`ignoreMethods`| Boolean (default: `false`). If `true`, when the transformer encounters a method, it will ignore it and simply return `true`. If `false`, an error is generated at compile time. |
135
135
|`ignoreFunctions`| Boolean (default: `false`). If `true`, when the transformer encounters a function, it will ignore it and simply return `true`. If `false`, an error is generated at compile time. |
136
136
|`disallowSuperfluousObjectProperties`| Boolean (default: `false`). If `true`, objects are checked for having superfluous properties and will cause the validation to fail if they do. If `false`, no check for superfluous properties is made. |
@@ -279,7 +279,7 @@ There you can find all the different types that are tested for.
279
279
280
280
* This library aims to be able to check any serializable data.
281
281
* This library will not check functions. Function signatures are impossible to check at run-time.
282
-
* This library will not check classes. Instead, you are encouraged to use the native `instanceof` operator. For example:
282
+
* This library will not check classes (except the global `Date`). Instead, you are encouraged to use the native `instanceof` operator. For example:
0 commit comments