We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e89d3af commit 36c2964Copy full SHA for 36c2964
base.d.ts
@@ -286,7 +286,8 @@ export type ParseOptions = {
286
});
287
//=> {isAdmin: 'true', flagged: true, isOkay: false}
288
```
289
- Note: The `'boolean'` type will also convert `'0'` and `'1'` string values to booleans.
+
290
+ Note: The `'boolean'` type also converts `'0'` and `'1'` to booleans, and treats valueless keys (e.g. `?flag`) as `true`.
291
*/
292
readonly types?: Record<
293
string,
0 commit comments