1.1.36 • Published 6 months ago

@types/express-debug v1.1.36

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

Installation

npm install --save @types/express-debug

Summary

This package contains type definitions for express-debug (https://github.com/devoidfury/express-debug).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-debug.

index.d.ts

// Type definitions for express-debug 1.1.1
// Project: https://github.com/devoidfury/express-debug
// Definitions by: Federico Bond <https://github.com/federicobond>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

/* =================== USAGE ===================

    import debug = require('express-debug');
    debug(app, options);

 =============================================== */




import express = require('express');

interface CustomPanel {
    name: string;

    template: string;

    process(locals: any): any;

    standalone?: boolean | undefined;

    initialize?(req: express.Request): void;

    finalize?(req: express.Request): void;

    pre_render?(req: express.Request): void;

    post_render?(req: express.Request): void;

    options?: any;
}

/**
 * Node.js middleware for serving a favicon.
 */
declare function debug(app: express.Application, settings?: {
    /**
     * How deep to recurse through printed objects. This is the default unless the
     * print_obj function is passed an options object with a 'depth' property.
     */
    depth?: number | undefined;

    /**
     * Absolute path to a css file to include and override EDT's default css.
     */
    theme?: string | undefined;

    /**
     * Additional panels to show.
     */
    extra_panels?: CustomPanel[] | undefined;

    /**
     * Allows changing the default panel.
     */
    panels?: string[] | undefined;

    /**
     * Path to render standalone express-debug.
     */
    path?: string | undefined;

    /**
     * If you need to add arbitrary attributes to the containing element of EDT,
     * this allows you to.
     */
    extra_attrs?: string | undefined;

    /**
     * Global option to determine sort order of printed object values. false for
     * default order, true for basic default sort, or a function to use for sort.
     */
    sort?: boolean | ((a: number, b: number) => number) | undefined;

}): void;

export = debug;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:01:17 GMT
  • Dependencies: @types/express
  • Global values: none

Credits

These definitions were written by Federico Bond.

1.1.34

8 months ago

1.1.36

6 months ago

1.1.35

7 months ago

1.1.33

3 years ago

1.1.32

7 years ago

1.1.31

7 years ago

1.1.30

8 years ago

1.1.29

8 years ago

1.1.28-alpha

8 years ago

1.1.27-alpha

8 years ago

1.1.26-alpha

8 years ago

1.1.25-alpha

8 years ago

1.1.24-alpha

8 years ago

1.1.23-alpha

8 years ago

1.1.22-alpha

8 years ago

1.1.17-alpha

8 years ago

1.1.16-alpha

8 years ago