0.0.36 • Published 6 months ago

@types/easy-jsend v0.0.36

Weekly downloads
1
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for easy-jsend
// Project: https://github.com/DeadAlready/easy-jsend
// Definitions by: Karl Düüna <https://github.com/DeadAlready>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3



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: Thu, 08 Jul 2021 12:01:02 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Karl Düüna.

0.0.34

8 months ago

0.0.35

7 months ago

0.0.36

6 months ago

0.0.33

3 years ago

0.0.32

5 years ago

0.0.31

7 years ago

0.0.30

7 years ago

0.0.29

8 years ago

0.0.28

8 years ago

0.0.27-alpha

8 years ago

0.0.26-alpha

8 years ago

0.0.25-alpha

8 years ago

0.0.24-alpha

8 years ago

0.0.23-alpha

8 years ago

0.0.22-alpha

8 years ago

0.0.21-alpha

8 years ago

0.0.16-alpha

8 years ago

0.0.15-alpha

8 years ago