0.0.36 • Published 7 months ago
@types/connect-slashes v0.0.36
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
// Type definitions for connect-slashes
// Project: https://github.com/avinoamr/connect-slashes
// Definitions by: Sam Herrmann <https://github.com/samherrmann>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/* =================== 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: Thu, 08 Jul 2021 09:08:09 GMT
- Dependencies: @types/express
- Global values: none
Credits
These definitions were written by Sam Herrmann.
0.0.34
9 months ago
0.0.35
7 months ago
0.0.36
7 months ago
0.0.33
3 years ago
0.0.32
5 years ago
0.0.31
7 years ago
0.0.30
8 years ago
0.0.29
8 years ago
0.0.28-alpha
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.17-alpha
8 years ago
0.0.16-alpha
8 years ago