MCPcopy
hub / github.com/nestjs/nest / Param

Function Param

packages/common/decorators/http/route-params.decorator.ts:689–697  ·  view source on GitHub ↗
(
  property?: string | (Type<PipeTransform> | PipeTransform),
  ...pipes: (Type<PipeTransform> | PipeTransform)[]
)

Source from the content-addressed store, hash-verified

687 * @publicApi
688 */
689export function Param(
690 property?: string | (Type<PipeTransform> | PipeTransform),
691 ...pipes: (Type<PipeTransform> | PipeTransform)[]
692): ParameterDecorator {
693 return createPipesRouteParamDecorator(RouteParamtypes.PARAM)(
694 property,
695 ...pipes,
696 );
697}
698
699/**
700 * Route handler parameter decorator. Extracts the `hosts`

Callers 15

testMethod · 0.90
testUsingArrayMethod · 0.90
greetingMethod · 0.90
greetingMethod · 0.90
greetingMethod · 0.90
greetingMethod · 0.90
greetingMethod · 0.90
greetingMethod · 0.90
findOneMethod · 0.90
updateMethod · 0.90
removeMethod · 0.90
findOneMethod · 0.90

Calls 1

Tested by 4

testMethod · 0.72
testUsingArrayMethod · 0.72
findOneMethod · 0.72
recordMethod · 0.72