Installation
npm install --save @types/easy-jsend
Summary
This package contains type definitions for easy-jsend (https://github.com/DeadAlready/easy-jsend).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/easy-jsend.
index.d.ts
declare namespace Express {
interface MakePartialInput {
model: any;
opts: {
limit: number;
skip: number;
};
search: Object;
result: any;
}
interface PartialInput {
limit?: number | undefined;
offset: number;
count: number;
data: any;
}
export interface Response {
success(data?: any, status?: number): void;
fail(data: any, status?: number): void;
error(err: any, status?: number): void;
partial?(data: PartialInput, status?: number): void;
makePartial?(data: MakePartialInput): void;
}
}
declare module "easy-jsend" {
export function init(conf?: { partial: boolean }): void;
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Karl Düüna.