ts-mongoose
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -5,13 +5,13 @@ import { SchemaTypeOpts, Types } from 'mongoose'; | ||
string: (options?: SchemaTypeOpts<string>) => string; | ||
optionalString: (options?: SchemaTypeOpts<string>) => string; | ||
optionalString: (options?: SchemaTypeOpts<string>) => string | null; | ||
number: (options?: SchemaTypeOpts<number>) => number; | ||
optionalNumber: (options?: SchemaTypeOpts<number>) => number; | ||
optionalNumber: (options?: SchemaTypeOpts<number>) => number | null; | ||
boolean: (options?: SchemaTypeOpts<boolean>) => boolean; | ||
optionalBoolean: (options?: SchemaTypeOpts<boolean>) => boolean; | ||
optionalBoolean: (options?: SchemaTypeOpts<boolean>) => boolean | null; | ||
date: (options?: SchemaTypeOpts<Date>) => Date; | ||
optionalDate: (options?: SchemaTypeOpts<Date>) => Date; | ||
optionalDate: (options?: SchemaTypeOpts<Date>) => Date | null; | ||
mixed: (options?: SchemaTypeOpts<any>) => any; | ||
optionalMixed: (options?: SchemaTypeOpts<any>) => any; | ||
objectId: (options?: SchemaTypeOpts<Types.ObjectId>) => Types.ObjectId; | ||
optionalObjectId: (options?: SchemaTypeOpts<Types.ObjectId>) => Types.ObjectId; | ||
optionalObjectId: (options?: SchemaTypeOpts<Types.ObjectId>) => Types.ObjectId | null; | ||
object: (options?: SchemaTypeOpts<object>) => { | ||
@@ -18,0 +18,0 @@ of<T>(schema: T): T; |
@@ -5,13 +5,13 @@ import { SchemaTypeOpts, Types } from 'mongoose'; | ||
string: (options?: SchemaTypeOpts<string>) => string; | ||
optionalString: (options?: SchemaTypeOpts<string>) => string; | ||
optionalString: (options?: SchemaTypeOpts<string>) => string | null; | ||
number: (options?: SchemaTypeOpts<number>) => number; | ||
optionalNumber: (options?: SchemaTypeOpts<number>) => number; | ||
optionalNumber: (options?: SchemaTypeOpts<number>) => number | null; | ||
boolean: (options?: SchemaTypeOpts<boolean>) => boolean; | ||
optionalBoolean: (options?: SchemaTypeOpts<boolean>) => boolean; | ||
optionalBoolean: (options?: SchemaTypeOpts<boolean>) => boolean | null; | ||
date: (options?: SchemaTypeOpts<Date>) => Date; | ||
optionalDate: (options?: SchemaTypeOpts<Date>) => Date; | ||
optionalDate: (options?: SchemaTypeOpts<Date>) => Date | null; | ||
mixed: (options?: SchemaTypeOpts<any>) => any; | ||
optionalMixed: (options?: SchemaTypeOpts<any>) => any; | ||
objectId: (options?: SchemaTypeOpts<Types.ObjectId>) => Types.ObjectId; | ||
optionalObjectId: (options?: SchemaTypeOpts<Types.ObjectId>) => Types.ObjectId; | ||
optionalObjectId: (options?: SchemaTypeOpts<Types.ObjectId>) => Types.ObjectId | null; | ||
object: (options?: SchemaTypeOpts<object>) => { | ||
@@ -18,0 +18,0 @@ of<T>(schema: T): T; |
{ | ||
"name": "ts-mongoose", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/commonjs/index.js", |
@@ -18,3 +18,3 @@ import { SchemaTypeOpts, Schema, Types } from 'mongoose'; | ||
type, | ||
} as any) as T; | ||
} as any) as T | null; | ||
}; | ||
@@ -21,0 +21,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
4291267
0