Comparing version 0.17.0 to 0.17.1
@@ -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
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
339065
1064