Skip to content

MethodsWithoutResponseType

MethodsWithoutResponseType<S, RT> = { [K in keyof S["methods"]]: S["methods"][K]["responseType"] extends RT ? never : K }[keyof S["methods"]]

Defined in: packages/core/src/schema-types.ts:120

Extract method names that do NOT have a specific response type.

Used to constrain send() to reject methods with responseType: "stream".

S extends Schema

RT extends string