(
handler: ({
ctx,
c,
input,
}: {
ctx: Ctx
c: ContextWithSuperJSON<E>
input: InputSchema extends ZodTypeAny ? z.infer<InputSchema> : void
}) => Return,
)
| 200 | } |
| 201 | |
| 202 | get<Return extends OptionalPromise<ResponseType<any>>>( |
| 203 | handler: ({ |
| 204 | ctx, |
| 205 | c, |
| 206 | input, |
| 207 | }: { |
| 208 | ctx: Ctx |
| 209 | c: ContextWithSuperJSON<E> |
| 210 | input: InputSchema extends ZodTypeAny ? z.infer<InputSchema> : void |
| 211 | }) => Return, |
| 212 | ): GetOperation<InputSchema, ReturnType<typeof handler>, E> { |
| 213 | return { |
| 214 | type: "get", |
| 215 | schema: this.inputSchema, |
| 216 | handler: handler as any, |
| 217 | middlewares: this.middlewares, |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | query<Return extends OptionalPromise<ResponseType<any>>>( |
| 222 | handler: ({ |
no outgoing calls
no test coverage detected