@@ -492,7 +492,7 @@ export const is: {
492
492
* ] as const);
493
493
* const a: unknown = [0, undefined, "a"];
494
494
* if (isMyType(a)) {
495
- * const _: [number, string | undefined, boolean, number?, string?, boolean?] = a;
495
+ * const _: [number, string | undefined, boolean, ( number | undefined) ?, ( string | undefined) ?, ( boolean | undefined) ?] = a;
496
496
* }
497
497
* ```
498
498
*
@@ -511,7 +511,7 @@ export const is: {
511
511
* );
512
512
* const a: unknown = [0, "a", true, 0, 1, 2];
513
513
* if (isMyType(a)) {
514
- * const _: [number, string?, boolean?, ...number[]] = a;
514
+ * const _: [number, ( string | undefined) ?, ( boolean | undefined) ?, ...number[]] = a;
515
515
* }
516
516
* ```
517
517
*
@@ -525,7 +525,7 @@ export const is: {
525
525
* const isMyType = is.ParametersOf(predTup);
526
526
* const a: unknown = [0, "a"];
527
527
* if (isMyType(a)) {
528
- * const _: [number, string, boolean?] = a;
528
+ * const _: [number, string, ( boolean | undefined) ?] = a;
529
529
* }
530
530
* ```
531
531
*/
@@ -766,7 +766,7 @@ export const is: {
766
766
* }));
767
767
* const a: unknown = { a: 0, b: "b", c: true, other: "other" };
768
768
* if (isMyType(a)) {
769
- * const _: { a: number; b: string | undefined; c: boolean } = a;
769
+ * const _: { a: number; b: string | undefined; c: boolean | undefined } = a;
770
770
* }
771
771
* ```
772
772
*/
0 commit comments