/** * Validates that the URL param ID matches the body ID. * Eliminates the repeated `if (id !== body.data.id)` check found in 28 places. * * @param paramName - The route param name (e.g., "rollId", "cullId") * @param bodyPath - Optional path to ID in body (default: "data.id") * * @example * ```typescript * @Put(`${endpoint}/:cullId`) * @ValidateId("cullId") * @CacheInvalidate(cullMeta, "cullId") * async update(@Res() reply, @Body() body: CullPutDTO) { * return this.crud.update(reply, body); * } * ``` */ export declare function ValidateId(paramName: string, bodyPath?: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor; //# sourceMappingURL=validate-id.decorator.d.ts.map