File tree Expand file tree Collapse file tree 16 files changed +32
-25
lines changed Expand file tree Collapse file tree 16 files changed +32
-25
lines changed Original file line number Diff line number Diff line change 12
12
* isArray({}) // false
13
13
* ```
14
14
*
15
- * @public
15
+ * @deprecated The module has moved to {@link https://github.com/TomokiMiyauci/is-valid}.
16
+
16
17
*/
17
18
const isArray = ( val : unknown ) : val is any [ ] => Array . isArray ( val )
18
19
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ type IsBigint<T extends unknown> = T extends bigint ? true : false
18
18
* isBigint(1000) // false
19
19
* ```
20
20
*
21
- * @public
21
+ * @deprecated The module has moved to { @link https://github.com/TomokiMiyauci/is-valid}.
22
22
*/
23
23
const isBigint = ( val : unknown ) : val is bigint => typeof val === 'bigint'
24
24
Original file line number Diff line number Diff line change 4
4
*
5
5
* @typeParam T - Any value
6
6
*
7
- * @public
7
+ * @deprecated Removed
8
8
*/
9
9
type IsBoolean < T extends unknown > = T extends boolean ? true : false
10
10
@@ -20,7 +20,7 @@ type IsBoolean<T extends unknown> = T extends boolean ? true : false
20
20
* isBoolean('hello') // false
21
21
* ```
22
22
*
<
8000
tr class="diff-line-row">23
- * @public
23
+ * @deprecated The module has moved to { @link https://github.com/TomokiMiyauci/is-valid}.
24
24
*/
25
25
const isBoolean = ( val : unknown ) : val is boolean => typeof val === 'boolean'
26
26
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import { Empty } from './types/index.ts'
30
30
* isEmpty(1000) // false
31
31
* ```
32
32
*
33
- * @public
33
+ * @deprecated The module has moved to { @link https://github.com/TomokiMiyauci/is-valid}.
34
34
*/
35
35
const isEmpty = ( val : unknown ) : val is Empty => {
36
36
if ( or ( isString ( val ) , ( ) => isArray ( val ) ) ) return isLength0 ( val )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import type { AnyFn } from './types/index.ts'
6
6
*
7
7
* @typeParam T - Any value
8
8
*
9
- * @public
9
+ * @deprecated Removed
10
10
*/
11
11
type IsFunction < T extends unknown > = T extends AnyFn ? true : false
12
12
@@ -22,7 +22,7 @@ type IsFunction<T extends unknown> = T extends AnyFn ? true : false
22
22
* isFunction('hello') // false
23
23
* ```
24
24
*
25
- * @public
25
+ * @deprecated The module has moved to { @link https://github.com/TomokiMiyauci/is-valid}.
26
26
*/
27
27
const isFunction = ( val : unknown ) : val is AnyFn => typeof val === 'function'
28
28
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { constructorName } from './constructorName.ts'
19
19
* isJSONObject(new Set()) // false
20
20
* ```
21
21
*
22
- * @public
22
+ * @deprecated The module has moved to { @link https://github.com/TomokiMiyauci/is-valid}.
23
23
*/
24
24
const isJSONObject = ( val : unknown ) : val is Record < PropertyKey , unknown > =>
25
25
constructorName ( val ) === JSON_OBJECT
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ import { or } from './or.ts'
21
21
*
22
22
* @category `Array` `String`
23
23
*
24
- * @public
24
+ * @deprecated The module has moved to {@link https://github.com/TomokiMiyauci/is-valid}.
25
+ *
25
26
*/
26
27
const isLength0 = ( val : unknown ) : val is 0 =>
27
28
ifElse (
Original file line number Diff line number Diff line change 14
14
* isNaN(100) // false
15
15
* ```
16
16
*
17
- * @public
17
+ * @deprecated Use built-in functions
18
18
*
19
19
*/
20
20
const isNaN = ( val : unknown ) : val is typeof NaN => Number . isNaN ( val )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { or } from './or.ts'
8
8
*
9
9
* @typeParam T - Any value
10
10
*
11
- * @public
11
+ * @deprecated The module has moved to { @link https://github.com/TomokiMiyauci/is-valid}.
12
12
*/
13
13
type IsNil < T extends unknown > = IsUndefined < T > extends true
14
14
? true
@@ -29,7 +29,7 @@ type IsNil<T extends unknown> = IsUndefined<T> extends true
29
29
* isNil([]) // false
30
30
* ```
31
31
*
32
- * @public
32
+ * @deprecated The module has moved to { @link https://github.com/TomokiMiyauci/is-valid}.
33
33
*
34
34
*/
35
35
const isNil = ( val : unknown ) : val is null | undefined =>
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { NULL } from './constants/index.ts'
6
6
*
7
7
* @typeParam T - Any value
8
8
*
9
- * @public
9
+ * @deprecated Removed
10
10
*/
11
11
type IsNull < T extends unknown > = T extends null ? true : false
12
12
@@ -22,7 +22,8 @@ type IsNull<T extends unknown> = T extends null ? true : false
22
22
* isNull(undefined) // false
23
23
* ```
24
24
*
25
- * @public
25
+ * @deprecated The module has moved to {@link https://github.com/TomokiMiyauci/is-valid}.
26
+ *
26
27
*/
27
28
const isNull = ( val : unknown ) : val is null => val === NULL
28
29
You can’t perform that action at this time.
0 commit comments