@types/connect-history-api-fallback

  • Version 1.5.4
  • Published
  • 4.86 kB
  • 2 dependencies
  • MIT license

Install

npm i @types/connect-history-api-fallback
yarn add @types/connect-history-api-fallback
pnpm add @types/connect-history-api-fallback

Overview

TypeScript definitions for connect-history-api-fallback

Index

Functions

function historyApiFallback

historyApiFallback: (
options?: historyApiFallback.Options
) => core.RequestHandler;

    Interfaces

    interface Context

    interface Context {}

      property match

      readonly match: RegExpMatchArray;

        property parsedUrl

        readonly parsedUrl: Url;

          property request

          readonly request: core.Request;

            interface Options

            interface Options {}

              property disableDotRule

              readonly disableDotRule?: true | undefined;

                property htmlAcceptHeaders

                readonly htmlAcceptHeaders?: readonly string[] | undefined;

                  property index

                  readonly index?: string | undefined;

                    property logger

                    readonly logger?: typeof console.log | undefined;

                      property rewrites

                      readonly rewrites?: readonly Rewrite[] | undefined;

                        property verbose

                        readonly verbose?: boolean | undefined;

                          interface Rewrite

                          interface Rewrite {}

                            property from

                            readonly from: RegExp;

                              property to

                              readonly to: string | RegExp | RewriteTo;

                                Type Aliases

                                type RewriteTo

                                type RewriteTo = (context: Context) => string;

                                  Package Files (1)

                                  Dependencies (2)

                                  Dev Dependencies (0)

                                  No dev dependencies.

                                  Peer Dependencies (0)

                                  No peer dependencies.

                                  Badge

                                  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/connect-history-api-fallback.

                                  • Markdown
                                    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/connect-history-api-fallback)
                                  • HTML
                                    <a href="https://www.jsdocs.io/package/@types/connect-history-api-fallback"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>