ts-is-present
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -1,3 +0,3 @@ | ||
export declare function isPresent<T>(t: T | undefined | null): t is T; | ||
export declare function isPresent<T>(t: T | undefined | null | void): t is T; | ||
export declare function isDefined<T>(t: T | undefined): t is T; | ||
export declare function isFilled<T>(t: T | null): t is T; |
{ | ||
"name": "ts-is-present", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "A library to have a generic typescript definition for object presence.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -46,3 +46,3 @@ # ts-is-present | ||
this will be treated as a truthy value when the filtering is performed. Most importantly, in this | ||
function, if you give it an `Array<T>` then you will get back an `Array<S>`; even if the lambda | ||
function, if you give it an `Array<T>` then you will get back an `Array<T>`; even if the lambda | ||
that you provided "proves" that the type could be restricted further. | ||
@@ -49,0 +49,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4789