MethodsWithResponseType
MethodsWithResponseType<
S,RT> ={ [K in keyof S["methods"]]: S["methods"][K]["responseType"] extends RT ? K : never }[keyofS["methods"]]
Defined in: packages/core/src/schema-types.ts:111
Extract method names that have a specific response type.
Used to constrain stream() to only accept methods with responseType: "stream".
Type Parameters
Section titled “Type Parameters”S extends Schema
RT extends string