You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -638,7 +638,7 @@ isClass(() => 5); // false
638
638
639
639
![fix][fix]
640
640
641
-
`4.1.2`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is defined by changing the `value` type to a generic `Type` and the return type to `value is Defined<Type>`.
641
+
`4.1.3`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is defined by changing the `value` type to a generic `Type` and the return type to `value is Defined<Type>`.
642
642
643
643
Use `isDefined()` or `is.defined()` to check if a generic `Type``value` is **not** an `undefined` type and is **not** equal to `undefined`.
644
644
@@ -1825,7 +1825,7 @@ const isNot: IsNot = {
1825
1825
1826
1826
![fix][fix]
1827
1827
1828
-
`4.1.2`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not `boolean` or [`Boolean`][boolean] by changing the `value` type to a generic `Type` and the return type to `value is Never<AnyBoolean, Type>`.
1828
+
`4.1.3`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not `boolean` or [`Boolean`][boolean] by changing the `value` type to a generic `Type` and the return type to `value is Never<AnyBoolean, Type>`.
1829
1829
1830
1830
Use `isNotBoolean()` or `is.not.boolean()` to check if a generic `Type``value` is **not** a `boolean` type and **not** an instance of a [`Boolean`][boolean].
1831
1831
@@ -1885,7 +1885,7 @@ isNotBoolean(objectBoolean); // false; return type is `value is never`
1885
1885
1886
1886
![fix][fix]
1887
1887
1888
-
`4.1.2`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not `defined` by changing the `value` type to a generic `Type` and the return type to `value is Undefined<Type>`.
1888
+
`4.1.3`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not `defined` by changing the `value` type to a generic `Type` and the return type to `value is Undefined<Type>`.
1889
1889
1890
1890
Use `isNotDefined()` or `is.not.defined()` to check if a generic `Type``value` is an `undefined` type and is equal to `undefined`.
1891
1891
@@ -1943,7 +1943,7 @@ isNotDefined(surname); // false; return type is `value is never`
1943
1943
1944
1944
![fix][fix]
1945
1945
1946
-
`4.1.2`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not `function` by changing the `value` type to a generic `Type` and the return type to `value is Never<Func, Type>`.
1946
+
`4.1.3`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not `function` by changing the `value` type to a generic `Type` and the return type to `value is Never<Func, Type>`.
1947
1947
1948
1948
Use `isNotFunction()` or `is.not.function()` to check if a generic `Type``value` is **not** a `function` type and **not** an instance of [`Function`](#func).
1949
1949
@@ -2002,7 +2002,7 @@ isNotFunction('maybe i am not'); // true; return type is `value is string`
2002
2002
2003
2003
![fix][fix]
2004
2004
2005
-
`4.1.2`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not `null` by changing `value` type to a generic `Type` and the return type to `value is Never<null, Type>`.
2005
+
`4.1.3`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not `null` by changing `value` type to a generic `Type` and the return type to `value is Never<null, Type>`.
2006
2006
2007
2007
Use `isNotNull()` or `is.not.null()` to check if a generic `Type``value` is **not** a `null` type and **not** equal to `null`.
2008
2008
@@ -2055,7 +2055,7 @@ isNotNull(firstName); // return type is `value is never`
2055
2055
2056
2056
![fix][fix]
2057
2057
2058
-
`4.1.2`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not a `number` or `Number` by changing `value` type to a generic `Type` and the return type to `value is Never<number, Type>`.
2058
+
`4.1.3`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not a `number` or `Number` by changing `value` type to a generic `Type` and the return type to `value is Never<number, Type>`.
2059
2059
2060
2060
Use `isNotNumber()` or `is.not.number()` to check if a generic `Type``value` is **not** a `number` type and **not** an instance of [`Number`][number].
2061
2061
@@ -2117,7 +2117,7 @@ isNotNumber(objectNumber); // return type is `value is never`
2117
2117
2118
2118
![fix][fix]
2119
2119
2120
-
`4.1.2`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not a `string` or [`String`][string] by changing `value` type to a generic `Type` and the return type to `value is Never<string, Type>`.
2120
+
`4.1.3`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not a `string` or [`String`][string] by changing `value` type to a generic `Type` and the return type to `value is Never<string, Type>`.
2121
2121
2122
2122
Use `isNotString()` or `is.not.string()` to check if a generic `Type``value` is **not** a `string` type and **not** an instance of [`String`][string].
2123
2123
@@ -2181,7 +2181,7 @@ isNotString(objectString); // return type is `value is never`
2181
2181
2182
2182
![fix][fix]
2183
2183
2184
-
`4.1.2`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not `undefined` by changing `value` type to a generic `Type` and the return type to `value is Defined<Type>`.
2184
+
`4.1.3`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is not `undefined` by changing `value` type to a generic `Type` and the return type to `value is Defined<Type>`.
2185
2185
2186
2186
Use `isNotUndefined()` or `is.not.undefined()` to check if a generic `Type``value` is **not** an `undefined` type and **not** equal to `undefined`.
0 commit comments