MCPcopy Index your code
hub / github.com/upstash/jstack / post

Method post

packages/jstack/src/server/procedure.ts:235–252  ·  view source on GitHub ↗
(
    handler: ({
      ctx,
      c,
      input,
    }: {
      ctx: Ctx
      c: ContextWithSuperJSON<E>
      input: InputSchema extends ZodTypeAny ? z.infer<InputSchema> : void
    }) => Return,
  )

Source from the content-addressed store, hash-verified

233 }
234
235 post<Return extends OptionalPromise<ResponseType<any>>>(
236 handler: ({
237 ctx,
238 c,
239 input,
240 }: {
241 ctx: Ctx
242 c: ContextWithSuperJSON<E>
243 input: InputSchema extends ZodTypeAny ? z.infer<InputSchema> : void
244 }) => Return,
245 ): PostOperation<InputSchema, ReturnType<typeof handler>, E> {
246 return {
247 type: "post",
248 schema: this.inputSchema,
249 handler: handler as any,
250 middlewares: this.middlewares,
251 }
252 }
253
254 mutation<Return extends OptionalPromise<ResponseType<any>>>(
255 handler: ({

Callers 3

mutationMethod · 0.95
registerOperationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected