mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 21:47:35 +00:00
Merge pull request #13351 from mehl321/types-2.0
[lodash] add type guards to isNull, isUndefined, isNil
This commit is contained in:
commit
81437fc576
6
lodash/index.d.ts
vendored
6
lodash/index.d.ts
vendored
@ -12292,7 +12292,7 @@ declare namespace _ {
|
||||
* _.isNil(NaN);
|
||||
* // => false
|
||||
*/
|
||||
isNil(value?: any): boolean;
|
||||
isNil(value: any): value is null | undefined;
|
||||
}
|
||||
|
||||
interface LoDashImplicitWrapperBase<T, TWrapper> {
|
||||
@ -12317,7 +12317,7 @@ declare namespace _ {
|
||||
* @param value The value to check.
|
||||
* @return Returns true if value is null, else false.
|
||||
*/
|
||||
isNull(value?: any): boolean;
|
||||
isNull(value: any): value is null;
|
||||
}
|
||||
|
||||
interface LoDashImplicitWrapperBase<T, TWrapper> {
|
||||
@ -12644,7 +12644,7 @@ declare namespace _ {
|
||||
* @param value The value to check.
|
||||
* @return Returns true if value is undefined, else false.
|
||||
*/
|
||||
isUndefined(value: any): boolean;
|
||||
isUndefined(value: any): value is undefined;
|
||||
}
|
||||
|
||||
interface LoDashImplicitWrapperBase<T, TWrapper> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user