xpress-mongo
Advanced tools
Comparing version 0.0.56 to 0.0.57
{ | ||
"name": "xpress-mongo", | ||
"version": "0.0.56", | ||
"version": "0.0.57", | ||
"description": "Light Weight ODM for mongoDb", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
@@ -40,3 +40,3 @@ import XMongoDataType = require("./XMongoDataType"); | ||
Array(def?: () => Array<any>): XMongoDataType | ||
Boolean(def?: boolean): XMongoDataType | ||
Boolean(def?: boolean | (() => boolean)): XMongoDataType | ||
CustomValidator( | ||
@@ -48,8 +48,8 @@ validator: (value: any) => boolean, | ||
InArray(list: any[], def?: any): XMongoDataType | ||
Number(def?: number | number[]): XMongoDataType | ||
Number(def?: number | number[] | (() => number | number[])): XMongoDataType | ||
Object(def?: () => StringToAnyObject): XMongoDataType | ||
ObjectId(): XMongoDataType | ||
String(def?: string | string[]): XMongoDataType | ||
String(def?: string | string[] | (() => string | string[])): XMongoDataType | ||
Types(types: XMongoDataType[]): XMongoDataType | ||
Uuid(version: number, options?: UuidOptions): XMongoDataType | ||
} |
@@ -34,3 +34,3 @@ import XMongoDataType = require("./XMongoDataType"); | ||
Array(def?: () => Array<any>): XMongoDataType; | ||
Boolean(def?: boolean): XMongoDataType; | ||
Boolean(def?: boolean | (() => boolean)): XMongoDataType; | ||
CustomValidator(validator: (value: any) => boolean, error?: string | { | ||
@@ -41,6 +41,6 @@ (key: string): string; | ||
InArray(list: any[], def?: any): XMongoDataType; | ||
Number(def?: number | number[]): XMongoDataType; | ||
Number(def?: number | number[] | (() => number | number[])): XMongoDataType; | ||
Object(def?: () => StringToAnyObject): XMongoDataType; | ||
ObjectId(): XMongoDataType; | ||
String(def?: string | string[]): XMongoDataType; | ||
String(def?: string | string[] | (() => string | string[])): XMongoDataType; | ||
Types(types: XMongoDataType[]): XMongoDataType; | ||
@@ -47,0 +47,0 @@ Uuid(version: number, options?: UuidOptions): XMongoDataType; |
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
146855