@types/easy-jsend
TypeScript icon, indicating that this package has built-in type declarations

0.0.36 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/easy-jsend

Weekly Downloads

6

Version

0.0.36

License

MIT

Unpacked Size

4.05 kB

Total Files

5

Last publish

Collaborators

  • types