Setu-TS
    Preparing search index...

    Function Params

    • Binds handler arguments to request sources, positionally.

      Each source is stored as ParameterMetadata whose index is the source's position in this call.

      The list is checked against the handler's own signature, so it must name EVERY parameter — one source per argument, in argument order. A shorter or longer list is a compile error rather than the silently-undefined argument the legacy parameter decorators produced. A handler that genuinely wants nothing bound simply carries no @Params.

      Type Parameters

      Parameters

      • ...sources: S

        One source per handler argument, in argument order

      Returns <A extends SourceValues<S>, R>(
          value: (...args: A) => R,
          context: ClassMethodDecoratorContext,
      ) => (...args: A) => R

      A method decorator

      @Post('/')
      @Params(Body<CreateWidget>(), CurrentUser<User>())
      create(input: CreateWidget, user: User) { … }

      0.2.0