@types/connect-history-api-fallback
TypeScript definitions for connect-history-api-fallback
Last updated 3 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ gnpm install @types/connect-history-api-fallback 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/connect-history-api-fallback

Summary

This package contains type definitions for connect-history-api-fallback (https://github.com/bripkens/connect-history-api-fallback#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-history-api-fallback.

index.d.ts

// Type definitions for connect-history-api-fallback 1.3
// Project: https://github.com/bripkens/connect-history-api-fallback#readme
// Definitions by: Douglas Duteil <https://github.com/douglasduteil>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

/// <reference types="node" />

import { Url } from 'url';

import * as core from "express-serve-static-core";

export = historyApiFallback;

declare function historyApiFallback(options?: historyApiFallback.Options): core.RequestHandler;

declare namespace historyApiFallback {
    interface Options {
        readonly disableDotRule?: true | undefined;
        readonly htmlAcceptHeaders?: ReadonlyArray<string> | undefined;
        readonly index?: string | undefined;
        readonly logger?: typeof console.log | undefined;
        readonly rewrites?: ReadonlyArray<Rewrite> | undefined;
        readonly verbose?: boolean | undefined;
    }

    interface Context {
        readonly match: RegExpMatchArray;
        readonly parsedUrl: Url;
    }
    type RewriteTo = (context: Context) => string;

    interface Rewrite {
        readonly from: RegExp;
        readonly to: string | RegExp | RewriteTo;
    }
}

Additional Details

Credits

These definitions were written by Douglas Duteil.

Current Tags

  • 1.3.5                                ...           latest (3 years ago)
  • 1.3.0                                ...           ts2.0 (8 years ago)
  • 1.3.0                                ...           ts2.1 (8 years ago)
  • 1.3.2                                ...           ts2.2 (6 years ago)
  • 1.3.3                                ...           ts2.3 (5 years ago)
  • 1.3.3                                ...           ts2.4 (5 years ago)
  • 1.3.3                                ...           ts2.5 (5 years ago)
  • 1.3.3                                ...           ts2.6 (5 years ago)
  • 1.3.3                                ...           ts2.7 (5 years ago)
  • 1.3.3                                ...           ts2.8 (5 years ago)
  • 1.3.3                                ...           ts2.9 (5 years ago)
  • 1.3.3                                ...           ts3.0 (5 years ago)
  • 1.3.3                                ...           ts3.1 (5 years ago)
  • 1.3.3                                ...           ts3.2 (5 years ago)
  • 1.3.3                                ...           ts3.3 (5 years ago)
  • 1.3.3                                ...           ts3.4 (5 years ago)
  • 1.3.4                                ...           ts3.5 (4 years ago)
  • 1.3.5                                ...           ts3.6 (3 years ago)
  • 1.3.5                                ...           ts3.7 (3 years ago)
  • 1.3.5                                ...           ts3.8 (3 years ago)
  • 1.3.5                                ...           ts3.9 (3 years ago)
  • 1.3.5                                ...           ts4.0 (3 years ago)
  • 1.3.5                                ...           ts4.1 (3 years ago)
  • 1.3.5                                ...           ts4.2 (3 years ago)
  • 1.3.5                                ...           ts4.3 (3 years ago)
  • 1.3.5                                ...           ts4.4 (3 years ago)
  • 1.3.5                                ...           ts4.5 (3 years ago)
  • 1.3.5                                ...           ts4.6 (3 years ago)
  • 1.3.5                                ...           ts4.7 (3 years ago)
  • 1.3.5                                ...           ts4.8 (3 years ago)
  • 1.3.5                                ...           ts4.9 (3 years ago)
  • 1.3.5                                ...           ts5.0 (3 years ago)
  • 1.3.5                                ...           ts5.1 (3 years ago)

6 Versions

  • 1.3.5                                ...           3 years ago
  • 1.3.4                                ...           4 years ago
  • 1.3.3                                ...           5 years ago
  • 1.3.2                                ...           6 years ago
  • 1.3.1                                ...           7 years ago
  • 1.3.0                                ...           8 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |