@@ -177,8 +177,8 @@ export type ObjectOf<T extends RecordOf<Predicate<unknown>>> = FlatType<
177177 * };
178178 * const a: unknown = { a: 0, b: "a" };
179179 * if (is.ObjectOf(predObj)(a)) {
180- * // a is narrowed to { a: number, b: string, c?: boolean }
181- * const _: { a: number, b: string, c?: boolean } = a;
180+ * // a is narrowed to { a: number; b: string; c?: boolean }
181+ * const _: { a: number; b: string; c?: boolean } = a;
182182 * }
183183 * ```
184184 */
@@ -266,9 +266,9 @@ export type OneOf<T> = T extends (infer U)[]
266266 * import is from "./is.ts";
267267 *
268268 * const preds = [is.Number, is.String, is.Boolean];
269- * const a: unknown = { a: 0, b: "a", c: true } ;
269+ * const a: unknown = 0 ;
270270 * if (is.OneOf(preds)(a)) {
271- * // a is narrowed to number | string | boolean;
271+ * // a is narrowed to number | string | boolean
272272 * const _: number | string | boolean = a;
273273 * }
274274 * ```
@@ -291,7 +291,7 @@ export type OptionalPredicate<T> = Predicate<T | undefined> & {
291291 *
292292 * const a: unknown = "a";
293293 * if (is.OptionalOf(is.String)(a)) {
294- * // a is narrowed to string | undefined;
294+ * // a is narrowed to string | undefined
295295 * const _: string | undefined = a;
296296 * }
297297 * ```
0 commit comments