New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ts-mongoose

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-mongoose - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

es/example.d.ts

12

es/Type.d.ts
import { SchemaTypeOpts, Types } from 'mongoose';
import { Extract } from './types';
import { Extract, ConvertObject } from './types';
export declare const Type: {

@@ -17,12 +17,12 @@ string: (options?: SchemaTypeOpts<string>) => string;

object: (options?: SchemaTypeOpts<object>) => {
of<T>(schema: T): T;
of<T>(schema: T): ConvertObject<T>;
};
optionalObject: (options?: SchemaTypeOpts<object>) => {
of<T>(schema: T): T;
of<T>(schema: T): ConvertObject<T> | null | undefined;
};
array: (options?: SchemaTypeOpts<any[]>) => {
of<T>(schema: T): T[];
of<T>(schema: T): ConvertObject<T>[];
};
optionalArray: (options?: SchemaTypeOpts<any[]>) => {
of<T>(schema: T): T[];
of<T>(schema: T): ConvertObject<T>[] | null | undefined;
};

@@ -33,3 +33,3 @@ schema: (options?: SchemaTypeOpts<object>) => {

optionalSchema: (options?: SchemaTypeOpts<object>) => {
of<T>(schema: T): Extract<T>;
of<T>(schema: T): Extract<T> | null | undefined;
};

@@ -36,0 +36,0 @@ ref: <T>(schema: T) => {

{
"name": "ts-mongoose",
"version": "0.0.13",
"version": "0.0.14",
"description": "",

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

import { SchemaTypeOpts, Types } from 'mongoose';
import { Extract } from './types';
import { Extract, ConvertObject } from './types';
export declare const Type: {

@@ -17,12 +17,12 @@ string: (options?: SchemaTypeOpts<string>) => string;

object: (options?: SchemaTypeOpts<object>) => {
of<T>(schema: T): T;
of<T>(schema: T): ConvertObject<T>;
};
optionalObject: (options?: SchemaTypeOpts<object>) => {
of<T>(schema: T): T;
of<T>(schema: T): ConvertObject<T> | null | undefined;
};
array: (options?: SchemaTypeOpts<any[]>) => {
of<T>(schema: T): T[];
of<T>(schema: T): ConvertObject<T>[];
};
optionalArray: (options?: SchemaTypeOpts<any[]>) => {
of<T>(schema: T): T[];
of<T>(schema: T): ConvertObject<T>[] | null | undefined;
};

@@ -33,3 +33,3 @@ schema: (options?: SchemaTypeOpts<object>) => {

optionalSchema: (options?: SchemaTypeOpts<object>) => {
of<T>(schema: T): Extract<T>;
of<T>(schema: T): Extract<T> | null | undefined;
};

@@ -36,0 +36,0 @@ ref: <T>(schema: T) => {

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