@adonisjs/route-model-binding
Version:
Route model binding for AdonisJS
17 lines (16 loc) • 498 B
TypeScript
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[];
}