next
Version:
The React Framework
8 lines (7 loc) • 463 B
TypeScript
import type { BaseNextRequest } from '../../../../server/base-http';
import type { MiddlewareMatcher } from '../../../../build/analysis/get-page-static-info';
import type { Params } from '../../../../server/request/params';
export interface MiddlewareRouteMatch {
(pathname: string | null | undefined, request: BaseNextRequest, query: Params): boolean;
}
export declare function getMiddlewareRouteMatcher(matchers: MiddlewareMatcher[]): MiddlewareRouteMatch;