• Version 0.5.1
  • Published
  • 3.9 kB
  • 1 dependency
  • MIT license


npm i @types/express-unless
yarn add @types/express-unless
pnpm add @types/express-unless


TypeScript definitions for express-unless



function unless

unless: {
(options: unless.Options): any;
(options: (req: any) => boolean): any;


    interface Options

    interface Options {}

      property custom

      custom?: (req: express.Request) => boolean;

        property ext

        ext?: string | string[];

          property method

          method?: string | string[];

            property path

            path?: pathFilter | pathFilter[];

              property useOriginalUrl

              useOriginalUrl?: boolean;

                interface RequestHandler

                interface RequestHandler extends express.RequestHandler {}

                  property unless

                  unless?: typeof unless;

                    Type Aliases

                    type pathFilter

                    type pathFilter =
                    | string
                    | RegExp
                    | { url: string | RegExp; methods?: string[]; method?: string | string[] };

                      Package Files (1)

                      Dependencies (1)

                      Dev Dependencies (0)

                      No dev dependencies.

                      Peer Dependencies (0)

                      No peer dependencies.


                      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/express-unless.

                      • Markdown
                      • HTML
                        <a href="https://www.jsdocs.io/package/@types/express-unless"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>