Skip to content

Commit 36c2964

Browse files
authored
Update base.d.ts
1 parent e89d3af commit 36c2964

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ export type ParseOptions = {
286286
});
287287
//=> {isAdmin: 'true', flagged: true, isOkay: false}
288288
```
289-
Note: The `'boolean'` type will also convert `'0'` and `'1'` string values to booleans.
289+
290+
Note: The `'boolean'` type also converts `'0'` and `'1'` to booleans, and treats valueless keys (e.g. `?flag`) as `true`.
290291
*/
291292
readonly types?: Record<
292293
string,

0 commit comments

Comments
 (0)