UNPKG

@adonisjs/route-model-binding

Version:
17 lines (16 loc) 498 B
import type { Param } from './types.js'; /** * Parses the params on a route. The params parser should not rely on the * request runtime values, since the parsed parameters are later cached * directly on the route object. * * In other words, the params parser should be idempotent across request. */ export declare class ParamsParser { #private; constructor(params: string[], routePattern: string); /** * Parse route params for a given request */ parse(): Param[]; }