Skip to content

Commit e456677

Browse files
committed
chore: fix snapshots
1 parent bc88e0e commit e456677

File tree

3 files changed

+31
-32
lines changed

3 files changed

+31
-32
lines changed

packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/bundle/client/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,13 @@ export type {
157157
Config,
158158
Options,
159159
OptionsLegacyParser,
160+
QuerySerializerOptions,
160161
RequestOptions,
161162
RequestResult,
162163
} from './types';
163164
export {
164165
createConfig,
165166
formDataBodySerializer,
166167
jsonBodySerializer,
167-
type QuerySerializerOptions,
168168
urlSearchParamsBodySerializer,
169169
} from './utils';

packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/bundle/client/types.ts

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,31 @@ import type {
88
} from 'nuxt/app';
99
import type { Ref } from 'vue';
1010

11-
import type {
12-
BodySerializer,
13-
QuerySerializer,
14-
QuerySerializerOptions,
15-
} from './utils';
11+
export type ArraySeparatorStyle = ArrayStyle | MatrixStyle;
12+
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
13+
type MatrixStyle = 'label' | 'matrix' | 'simple';
14+
export type ObjectSeparatorStyle = ObjectStyle | MatrixStyle;
15+
type ObjectStyle = 'form' | 'deepObject';
16+
17+
export type BodySerializer = (body: any) => any;
18+
19+
export interface SerializerOptions<T> {
20+
/**
21+
* @default true
22+
*/
23+
explode: boolean;
24+
style: T;
25+
}
26+
27+
export type QuerySerializer = (
28+
query: Parameters<Client['buildUrl']>[0]['query'],
29+
) => string;
30+
31+
export interface QuerySerializerOptions {
32+
allowReserved?: boolean;
33+
array?: SerializerOptions<ArrayStyle>;
34+
object?: SerializerOptions<ObjectStyle>;
35+
}
1636

1737
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
1838

packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/bundle/client/utils.ts

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,24 @@ import type { ComputedRef, Ref } from 'vue';
22
import { isRef, toValue, unref } from 'vue';
33

44
import type {
5+
ArraySeparatorStyle,
56
Auth,
67
BuildUrlOptions,
78
Client,
89
Config,
10+
ObjectSeparatorStyle,
11+
QuerySerializer,
12+
QuerySerializerOptions,
913
RequestOptions,
14+
SerializerOptions,
1015
} from './types';
1116

1217
type PathSerializer = Pick<Required<BuildUrlOptions>, 'path' | 'url'>;
1318

1419
const PATH_PARAM_RE = /\{[^{}]+\}/g;
1520

16-
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
17-
type MatrixStyle = 'label' | 'matrix' | 'simple';
18-
type ArraySeparatorStyle = ArrayStyle | MatrixStyle;
19-
type ObjectStyle = 'form' | 'deepObject';
20-
type ObjectSeparatorStyle = ObjectStyle | MatrixStyle;
21-
2221
type MaybeArray<T> = T | T[];
2322

24-
export type QuerySerializer = (
25-
query: Parameters<Client['buildUrl']>[0]['query'],
26-
) => string;
27-
28-
export type BodySerializer = (body: any) => any;
29-
30-
interface SerializerOptions<T> {
31-
/**
32-
* @default true
33-
*/
34-
explode: boolean;
35-
style: T;
36-
}
37-
3823
interface SerializeOptions<T>
3924
extends SerializePrimitiveOptions,
4025
SerializerOptions<T> {}
@@ -46,12 +31,6 @@ interface SerializePrimitiveParam extends SerializePrimitiveOptions {
4631
value: string;
4732
}
4833

49-
export interface QuerySerializerOptions {
50-
allowReserved?: boolean;
51-
array?: SerializerOptions<ArrayStyle>;
52-
object?: SerializerOptions<ObjectStyle>;
53-
}
54-
5534
const serializePrimitiveParam = ({
5635
allowReserved,
5736
name,

0 commit comments

Comments
 (0)