55 * OpenAPI spec version: 1.0.0
66 */
77export type PetCallingCode =
8- ( typeof PetCallingCode ) [ keyof typeof PetCallingCode ] ;
8+ ( typeof PetCallingCodeConsts ) [ keyof typeof PetCallingCodeConsts ] ;
99
10- // eslint-disable-next-line @typescript-eslint/no-redeclare
11- export const PetCallingCode = {
10+ export const PetCallingCodeConsts = {
1211 '+33' : '+33' ,
1312 '+420' : '+420' ,
1413} as const ;
1514
16- export type PetCountry = ( typeof PetCountry ) [ keyof typeof PetCountry ] ;
15+ export type PetCountry =
16+ ( typeof PetCountryConsts ) [ keyof typeof PetCountryConsts ] ;
1717
18- // eslint-disable-next-line @typescript-eslint/no-redeclare
19- export const PetCountry = {
18+ export const PetCountryConsts = {
2019 "People's_Republic_of_China" : "People's Republic of China" ,
2120 Uruguay : 'Uruguay' ,
2221} as const ;
@@ -41,10 +40,9 @@ export type Pet =
4140 country ?: PetCountry ;
4241 } ) ;
4342
44- export type DogType = ( typeof DogType ) [ keyof typeof DogType ] ;
43+ export type DogType = ( typeof DogTypeConsts ) [ keyof typeof DogTypeConsts ] ;
4544
46- // eslint-disable-next-line @typescript-eslint/no-redeclare
47- export const DogType = {
45+ export const DogTypeConsts = {
4846 dog : 'dog' ,
4947} as const ;
5048
@@ -59,10 +57,9 @@ export type Dog =
5957 } ) ;
6058
6159export type LabradoodleBreed =
62- ( typeof LabradoodleBreed ) [ keyof typeof LabradoodleBreed ] ;
60+ ( typeof LabradoodleBreedConsts ) [ keyof typeof LabradoodleBreedConsts ] ;
6361
64- // eslint-disable-next-line @typescript-eslint/no-redeclare
65- export const LabradoodleBreed = {
62+ export const LabradoodleBreedConsts = {
6663 Labradoodle : 'Labradoodle' ,
6764} as const ;
6865
@@ -72,10 +69,9 @@ export interface Labradoodle {
7269}
7370
7471export type DachshundBreed =
75- ( typeof DachshundBreed ) [ keyof typeof DachshundBreed ] ;
72+ ( typeof DachshundBreedConsts ) [ keyof typeof DachshundBreedConsts ] ;
7673
77- // eslint-disable-next-line @typescript-eslint/no-redeclare
78- export const DachshundBreed = {
74+ export const DachshundBreedConsts = {
7975 Dachshund : 'Dachshund' ,
8076} as const ;
8177
@@ -84,10 +80,9 @@ export interface Dachshund {
8480 breed : DachshundBreed ;
8581}
8682
87- export type CatType = ( typeof CatType ) [ keyof typeof CatType ] ;
83+ export type CatType = ( typeof CatTypeConsts ) [ keyof typeof CatTypeConsts ] ;
8884
89- // eslint-disable-next-line @typescript-eslint/no-redeclare
90- export const CatType = {
85+ export const CatTypeConsts = {
9186 cat : 'cat' ,
9287} as const ;
9388
0 commit comments