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-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,6 +137,7 @@ There are some options to configure the transformer.
137
137
|`ignoreFunctions`*(deprecated, use `functionBehavior` instead)*| 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. |
138
138
|`functionBehavior`| One of `error`, `ignore`, or `basic` (default: `error`). Determines the behavior of transformer when encountering a function. `error` will cause a compile-time error, `ignore` will cause the validation function to always return `true`, and `basic` will do a simple function-type-check. Overrides `ignoreFunctions`. |
139
139
|`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. |
140
+
|`transformNonNullExpressions`| Boolean (default: `false`). If `true`, non-null expressions (eg. `foo!.bar`) are checked to not be `null` or `undefined`|
140
141
141
142
If you are using `ttypescript`, you can include the options in your `tsconfig.json`:
142
143
@@ -150,7 +151,8 @@ If you are using `ttypescript`, you can include the options in your `tsconfig.js
0 commit comments