2.0.3 • Published 8 months ago
@types/express-unless v2.0.3
Installation
npm install --save @types/express-unless
Summary
This package contains type definitions for express-unless (https://www.npmjs.org/package/express-unless).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-unless.
index.d.ts
// Type definitions for express-unless 0.5
// Project: https://www.npmjs.org/package/express-unless
// Definitions by: Wonshik Kim <https://github.com/wokim>
// Joao Vieira <https://github.com/joaovieira>
// Michal Kaminski <https://github.com/michal-b-kaminski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import express = require("express");
declare function unless(options: unless.Options): express.RequestHandler;
declare function unless(options: unless.Options["custom"]): express.RequestHandler;
declare function unless(middleware: express.RequestHandler, options: unless.Options): express.RequestHandler;
declare namespace unless {
type pathFilter = string | RegExp | { url: string | RegExp, methods?: string[] | undefined, method?: string | string[] | undefined };
export interface Options {
custom?: ((req: express.Request) => boolean) | undefined;
path?: pathFilter | pathFilter[] | undefined;
ext?: string | string[] | undefined;
method?: string | string[] | undefined;
useOriginalUrl?: boolean | undefined;
}
export interface RequestHandler extends express.RequestHandler {
unless?: typeof unless | undefined;
}
}
export = unless;
Additional Details
- Last updated: Thu, 10 Feb 2022 07:31:36 GMT
- Dependencies: @types/express
- Global values: none
Credits
These definitions were written by Wonshik Kim, Joao Vieira, and Michal Kaminski.
2.0.3
8 months ago
2.0.2
8 months ago
2.0.1
3 years ago
0.5.3
3 years ago
0.5.2
4 years ago
0.5.1
6 years ago
0.5.0
6 years ago
0.0.32
8 years ago
0.0.31
8 years ago
0.0.30
9 years ago
0.0.29
9 years ago
0.0.28-alpha
9 years ago
0.0.27-alpha
9 years ago
0.0.26-alpha
9 years ago
0.0.25-alpha
9 years ago
0.0.24-alpha
9 years ago
0.0.23-alpha
9 years ago
0.0.22-alpha
9 years ago
0.0.17-alpha
9 years ago
0.0.16-alpha
9 years ago