• Version 1.3.5
  • Published
  • 5.41 kB
  • 2 dependencies
  • MIT license


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


TypeScript definitions for connect-history-api-fallback



function historyApiFallback

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


    interface Context

    interface Context {}

      property match

      readonly match: RegExpMatchArray;

        property parsedUrl

        readonly parsedUrl: Url;

          interface Options

          interface Options {}

            property disableDotRule

            readonly disableDotRule?: true | undefined;

              property htmlAcceptHeaders

              readonly htmlAcceptHeaders?: ReadonlyArray<string> | undefined;

                property index

                readonly index?: string | undefined;

                  property logger

                  readonly logger?: typeof console.log | undefined;

                    property rewrites

                    readonly rewrites?: ReadonlyArray<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.


                                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
                                • 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>