mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-31 13:47:02 +02:00
Chore: rename and cleanup
This commit is contained in:
parent
ece96eb933
commit
89fadf3e87
@ -46,10 +46,10 @@ const exportParameters = {
|
|||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
type ExportParams = typeof exportParameters;
|
type ExportParameters = {
|
||||||
|
[Property in keyof typeof exportParameters]: {
|
||||||
type Mutable = {
|
type: typeof exportParameters[Property]['type'];
|
||||||
[Property in keyof ExportParams]: { type: ExportParams[Property]['type'] };
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// this schema is here only to generate types
|
// this schema is here only to generate types
|
||||||
@ -63,8 +63,8 @@ const exportQueryParametersSchema = {
|
|||||||
type: (next.schema as OpenAPIV3.SchemaObject).type,
|
type: (next.schema as OpenAPIV3.SchemaObject).type,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
{} as Partial<Mutable>,
|
{} as Partial<ExportParameters>,
|
||||||
) as Mutable,
|
) as ExportParameters,
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export type ExportQueryParameters = FromSchema<
|
export type ExportQueryParameters = FromSchema<
|
||||||
|
Loading…
Reference in New Issue
Block a user