mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #28105 from ingver/patch-3
Include support for contextual History API Fallback rewrites
This commit is contained in:
Vendored
+9
-1
@@ -14,6 +14,7 @@ import * as express from 'express';
|
||||
import * as serveStatic from 'serve-static';
|
||||
import * as https from 'https';
|
||||
import * as http from 'http';
|
||||
import { Url } from "url";
|
||||
|
||||
declare namespace WebpackDevServer {
|
||||
interface ListeningApp {
|
||||
@@ -31,9 +32,16 @@ declare namespace WebpackDevServer {
|
||||
|
||||
type ProxyConfigArray = ProxyConfigArrayItem[];
|
||||
|
||||
interface Context {
|
||||
match: RegExpMatchArray;
|
||||
parsedUrl: Url;
|
||||
}
|
||||
|
||||
type RewriteTo = (context: Context) => string;
|
||||
|
||||
interface Rewrite {
|
||||
from: RegExp;
|
||||
to: string;
|
||||
to: string | RegExp | RewriteTo;
|
||||
}
|
||||
|
||||
interface HistoryApiFallbackConfig {
|
||||
|
||||
Reference in New Issue
Block a user