![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@types/mongoose-paginate
Advanced tools
TypeScript definitions for mongoose-paginate
npm install --save @types/mongoose-paginate
This package contains type definitions for mongoose-paginate (https://github.com/edwardhotchkiss/mongoose-paginate).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mongoose-paginate.
/// <reference types="mongoose" />
declare module "mongoose" {
export interface PaginateOptions {
select?: Object | string | undefined;
sort?: Object | string | undefined;
populate?:
| Object[]
| string[]
| Object
| string
| QueryPopulateOptions
| undefined;
lean?: boolean | undefined;
leanWithId?: boolean | undefined;
offset?: number | undefined;
page?: number | undefined;
limit?: number | undefined;
}
interface QueryPopulateOptions {
/** space delimited path(s) to populate */
path: string;
/** optional fields to select */
select?: any;
/** optional query conditions to match */
match?: any;
/** optional model to use for population */
model?: string | Model<any> | undefined;
/** optional query options like sort, limit, etc */
options?: any;
/** deep populate */
populate?: QueryPopulateOptions | QueryPopulateOptions[] | undefined;
}
export interface PaginateResult<T> {
docs: T[];
total: number;
limit: number;
page?: number | undefined;
pages?: number | undefined;
offset?: number | undefined;
}
interface PaginateModel<T extends Document> extends Model<T> {
paginate(
query?: Object,
options?: PaginateOptions,
callback?: (err: any, result: PaginateResult<T>) => void,
): Promise<PaginateResult<T>>;
}
export function model<T extends Document>(
name: string,
schema?: Schema,
collection?: string,
skipInit?: boolean,
): PaginateModel<T>;
export function model<T extends Document, U extends PaginateModel<T>>(
name: string,
schema?: Schema,
collection?: string,
skipInit?: boolean,
): U;
}
declare module "mongoose-paginate" {
import mongoose = require("mongoose");
var _: (schema: mongoose.Schema) => void;
export = _;
}
These definitions were written by Linus Brolin.
FAQs
TypeScript definitions for mongoose-paginate
The npm package @types/mongoose-paginate receives a total of 4,463 weekly downloads. As such, @types/mongoose-paginate popularity was classified as popular.
We found that @types/mongoose-paginate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.