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 0.17.0 to 0.17.1

11

index.d.ts

@@ -95,11 +95,12 @@ declare module 'optimal/lib/isObject' {

import Builder from 'optimal/lib/Builder';
export type Constructor<T> = new (...args: any[]) => T;
export default class InstanceBuilder<T> extends Builder<T | null> {
refClass: T | null;
constructor(refClass?: T | null);
refClass: Constructor<T> | null;
constructor(refClass?: Constructor<T> | null);
checkInstance(path: string, value: any, refClass: T | null): void;
typeAlias(): string;
}
export function instance<T extends Function>(refClass?: T | null): InstanceBuilder<T>;
export function regex(): InstanceBuilder<Function>;
export function date(): InstanceBuilder<Function>;
export function instance<T>(refClass?: Constructor<T> | null): InstanceBuilder<T>;
export function regex(): InstanceBuilder<RegExp>;
export function date(): InstanceBuilder<Date>;

@@ -106,0 +107,0 @@ }

{
"name": "optimal",
"version": "0.17.0",
"version": "0.17.1",
"description": "Options object builder and validator.",

@@ -48,3 +48,3 @@ "main": "./lib/index.js",

"devDependencies": {
"@milesj/build-tool-config": "^0.76.1"
"@milesj/build-tool-config": "^0.76.2"
},

@@ -51,0 +51,0 @@ "beemo": {

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