···11+---
22+'@hey-api/openapi-ts': minor
33+---
44+55+feat(sdk): add responseStyle option
66+77+**BREAKING**: Update your client to the latest version.
+7
.changeset/yellow-boats-think.md
···11+---
22+'@hey-api/client-fetch': minor
33+---
44+55+feat: add responseStyle option
66+77+**BREAKING**: Update `@hey-api/openapi-ts` to the latest version.
···3333 /**
3434 * List of function types.
3535 */
3636- types?: string[];
3636+ types?: ReadonlyArray<string | ts.StringLiteral>;
3737}) => {
3838 const typeArguments = types.map((type) =>
3939+ // this works with string literals too despite throwing a type error.
4040+ // should be probably fixed at some point...
4141+ // @ts-expect-error
3942 createTypeReferenceNode({ typeName: type }),
4043 );
4144 const argumentsArray = args
···7070 */
7171 output?: string;
7272 /**
7373+ * **This feature works only with the Fetch client**
7474+ *
7575+ * Should we return only data or multiple fields (data, error, response, etc.)?
7676+ *
7777+ * @default 'fields'
7878+ */
7979+ responseStyle?: 'data' | 'fields';
8080+ /**
7381 * Customize the generated service class names. The name variable is
7482 * obtained from your OpenAPI specification tags.
7583 *