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

0.0.36 • Public • Published

Installation

npm install --save @types/connect-slashes

Summary

This package contains type definitions for connect-slashes (https://github.com/avinoamr/connect-slashes).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-slashes.

index.d.ts

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

    import express = require('express');
    import slashes = require('connect-slashes');

    var app = express();
    app.use(slashes());
 =============================================== */

import express = require("express");

/**
 * @see https://github.com/avinoamr/connect-slashes#usage
 */
declare function slashes(addTrailingSlashes?: boolean, options?: slashes.Options): express.RequestHandler;

declare namespace slashes {
    /**
     * Additional settings
     * @see https://github.com/avinoamr/connect-slashes#additional-settings
     */
    interface Options {
        base?: string | undefined;
        code?: number | undefined;
        headers?: { [field: string]: string } | undefined;
    }
}

export = slashes;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/express

Credits

These definitions were written by Sam Herrmann.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/connect-slashes

Weekly Downloads

1,793

Version

0.0.36

License

MIT

Unpacked Size

4.25 kB

Total Files

5

Last publish

Collaborators

  • types