@@ -492,7 +492,7 @@ export const is: {
492492 * ] as const);
493493 * const a: unknown = [0, undefined, "a"];
494494 * 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;
496496 * }
497497 * ```
498498 *
@@ -511,7 +511,7 @@ export const is: {
511511 * );
512512 * const a: unknown = [0, "a", true, 0, 1, 2];
513513 * if (isMyType(a)) {
514- * const _: [number, string?, boolean?, ...number[]] = a;
514+ * const _: [number, ( string | undefined) ?, ( boolean | undefined) ?, ...number[]] = a;
515515 * }
516516 * ```
517517 *
@@ -525,7 +525,7 @@ export const is: {
525525 * const isMyType = is.ParametersOf(predTup);
526526 * const a: unknown = [0, "a"];
527527 * if (isMyType(a)) {
528- * const _: [number, string, boolean?] = a;
528+ * const _: [number, string, ( boolean | undefined) ?] = a;
529529 * }
530530 * ```
531531 */
@@ -766,7 +766,7 @@ export const is: {
766766 * }));
767767 * const a: unknown = { a: 0, b: "b", c: true, other: "other" };
768768 * if (isMyType(a)) {
769- * const _: { a: number; b: string | undefined; c: boolean } = a;
769+ * const _: { a: number; b: string | undefined; c: boolean | undefined } = a;
770770 * }
771771 * ```
772772 */
0 commit comments