UNPKG

next-csrf

Version:

CSRF mitigation library for Next.js

5 lines (4 loc) 232 B
import { getRouteRegex } from './route-regex'; export declare function getRouteMatcher(routeRegex: ReturnType<typeof getRouteRegex>): (pathname: string | null | undefined) => false | { [paramName: string]: string | string[]; };