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

aint

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aint - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

6

CHANGELOG.md
# aint
## 0.3.1
### Patch Changes
- 7562be4: Fix typos in README.md
## 0.3.0

@@ -4,0 +10,0 @@

2

package.json
{
"name": "aint",
"version": "0.3.0",
"version": "0.3.1",
"description": "A collection of common runtime predicates that TypeScript actually understands.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -38,5 +38,5 @@ # aint

- [isNotEmptyArray](./lib/isNotEmptyArray.ts)
- [isNotEmptyString](./lib/isNotEmptyArray.ts)
- [isNotNull](./lib/isNotEmptyArray.ts)
- [isNotUndefined](./lib/isNotEmptyArray.ts)
- [isNotEmptyString](./lib/isNotEmptyString.ts)
- [isNotNull](./lib/isNotNull.ts)
- [isNotUndefined](./lib/isNotUndefined.ts)

@@ -53,3 +53,3 @@ ## Motivation

However, TypeScript will NOT _infer_ the correct type [[playground link](https://www.typescriptlang.org/play?#code/MYewdgzgLgBAhgJwXAnjAvDA2gRgDQwBMBYArgDbkC6AdAGYCW5UApggBQBCII5LcYAJQBuIA)]. It will _understand_ the type of array as being `Array<null | number>` instead of `Array<null>`.
However, TypeScript will NOT _infer_ the correct type [[playground link](https://www.typescriptlang.org/play?#code/MYewdgzgLgBAhgJwXAnjAvDA2gRgDQwBMBYArgDbkC6AdAGYCW5UApggBQBCII5LcYAJQBuIA)]. It will _understand_ the type of array as being `Array<null | number>` instead of `Array<number>`.

@@ -56,0 +56,0 @@ `aint` provides a simple API to test for predicates, while making TypeScript _understand_.

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