Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-is-present

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-is-present - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

2

lib/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc