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-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,8 @@ See [server demo](example) and [browser demo](https://github.com/bcherny/json-sc
141
141
| inferStringEnumKeysFromValues | boolean |`false`| Create enums from JSON enums with eponymous keys |
142
142
| format | boolean |`true`| Format code? Set this to `false` to improve performance. |
143
143
| ignoreMinAndMaxItems | boolean |`false`| Ignore maxItems and minItems for `array` types, preventing tuples being generated. |
144
-
| maxItems | number | `20` | Maximum number of unioned tuples to emit when representing bounded-size array types, before falling back to emitting unbounded arrays. Increase this to improve precision of emitted types, decrease it to improve performance, or set it to `-1` to ignore `maxItems`.
144
+
| maxItems | number |`20`| Maximum number of unioned tuples to emit when representing bounded-size array types, before falling back to emitting unbounded arrays. Increase this to improve precision of emitted types, decrease it to improve performance, or set it to `-1` to ignore `maxItems`. |
145
+
| removeOptionalIfDefaultExists | boolean |`false`| Remove the optional modifier when a property has a default value. |
145
146
| strictIndexSignatures | boolean |`false`| Append all index signatures with `\| undefined` so that they are strictly typed. |
0 commit comments