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

optimal

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

optimal - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

### 4.1.1 - 2020-01-29
#### 🐞 Fixes
- **[func]** Removed the generic constraint as it is too restrictive.
## 4.1.0 - 2020-01-20

@@ -2,0 +8,0 @@

2

lib/Predicate.d.ts

@@ -112,2 +112,2 @@ import Schema from './Schema';

export declare function custom<T, S extends object = {}>(callback: CustomCallback<T, S>, defaultValue: DefaultValue<T>): Predicate<T>;
export declare function func<T extends FuncOf = FuncOf>(defaultValue?: T | null): Predicate<T | null>;
export declare function func<T = FuncOf>(defaultValue?: T | null): Predicate<T | null>;
{
"name": "optimal",
"version": "4.1.0",
"version": "4.1.1",
"description": "A system for building and validating defined object structures.",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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