From 3503ed96667ebeaf54298cad6ccd226b7c2e67d3 Mon Sep 17 00:00:00 2001 From: unional Date: Sun, 24 Sep 2023 20:59:27 -0700 Subject: [PATCH] docs: update undefined docs --- type-plus/ts/undefined/is_not_undefined.ts | 3 +++ type-plus/ts/undefined/is_undefined.ts | 5 +---- type-plus/ts/undefined/readme.md | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/type-plus/ts/undefined/is_not_undefined.ts b/type-plus/ts/undefined/is_not_undefined.ts index 36495e44e0..a6452e5a5f 100644 --- a/type-plus/ts/undefined/is_not_undefined.ts +++ b/type-plus/ts/undefined/is_not_undefined.ts @@ -33,6 +33,9 @@ import type { SelectInvertWithDistribute } from '../type_plus/branch/select_inve * @example * ```ts * type R = IsNotUndefined // unknown + * + * type R = IsNotUndefined // string | boolean + * type R = IsNotUndefined // unknown * ``` * * 🔢 *customize* diff --git a/type-plus/ts/undefined/is_undefined.ts b/type-plus/ts/undefined/is_undefined.ts index 053667f724..4d0b6cb926 100644 --- a/type-plus/ts/undefined/is_undefined.ts +++ b/type-plus/ts/undefined/is_undefined.ts @@ -37,11 +37,8 @@ import type { SelectWithDistribute } from '../type_plus/branch/select_with_distr * * @example * ```ts - * type R = IsUndefined // undefined - * - * type R = IsUndefined // unknown - * type R = IsUndefined // unknown * type R = IsUndefined // unknown + * type R = IsUndefined // unknown * ``` * * 🔢 *customize*: diff --git a/type-plus/ts/undefined/readme.md b/type-plus/ts/undefined/readme.md index 435347b173..0e744f5d8d 100644 --- a/type-plus/ts/undefined/readme.md +++ b/type-plus/ts/undefined/readme.md @@ -39,11 +39,8 @@ type R = IsUndefined // undefined Filter to ensure `T` is `undefined`, otherwise returns `unknown`. ```ts -type R = IsUndefined // undefined - -type R = IsUndefined // unknown -type R = IsUndefined // unknown type R = IsUndefined // unknown +type R = IsUndefined // unknown ``` 🔢 *customize*: @@ -98,6 +95,9 @@ Filter to ensure `T` is not `undefined`, otherwise returns `unknown`. ```ts type R = IsNotUndefined // unknown + +type R = IsNotUndefined // string | boolean +type R = IsNotUndefined // unknown ``` 🔢 *customize*