(
handler: ({
ctx,
c,
input,
}: {
ctx: Ctx
c: ContextWithSuperJSON<E>
input: InputSchema extends ZodTypeAny ? z.infer<InputSchema> : void
}) => Return,
)
| 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: ({ |
no outgoing calls
no test coverage detected