(
handler: ({
ctx,
c,
input,
}: {
ctx: Ctx
c: ContextWithSuperJSON<E>
input: InputSchema extends ZodTypeAny ? z.infer<InputSchema> : void
}) => Return,
)
| 219 | } |
| 220 | |
| 221 | query<Return extends OptionalPromise<ResponseType<any>>>( |
| 222 | handler: ({ |
| 223 | ctx, |
| 224 | c, |
| 225 | input, |
| 226 | }: { |
| 227 | ctx: Ctx |
| 228 | c: ContextWithSuperJSON<E> |
| 229 | input: InputSchema extends ZodTypeAny ? z.infer<InputSchema> : void |
| 230 | }) => Return, |
| 231 | ): GetOperation<InputSchema, Return, E> { |
| 232 | return this.get(handler) |
| 233 | } |
| 234 | |
| 235 | post<Return extends OptionalPromise<ResponseType<any>>>( |
| 236 | handler: ({ |
no test coverage detected