From 89fadf3e87cd059643a78b35ee7701b624624118 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Fri, 22 Jul 2022 11:12:58 +0200 Subject: [PATCH] Chore: rename and cleanup --- src/lib/openapi/spec/export-parameters-schema.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/openapi/spec/export-parameters-schema.ts b/src/lib/openapi/spec/export-parameters-schema.ts index d6de36a32a..3b3ec6f0a2 100644 --- a/src/lib/openapi/spec/export-parameters-schema.ts +++ b/src/lib/openapi/spec/export-parameters-schema.ts @@ -46,10 +46,10 @@ const exportParameters = { }, } as const; -type ExportParams = typeof exportParameters; - -type Mutable = { - [Property in keyof ExportParams]: { type: ExportParams[Property]['type'] }; +type ExportParameters = { + [Property in keyof typeof exportParameters]: { + type: typeof exportParameters[Property]['type']; + }; }; // this schema is here only to generate types @@ -63,8 +63,8 @@ const exportQueryParametersSchema = { type: (next.schema as OpenAPIV3.SchemaObject).type, }, }), - {} as Partial, - ) as Mutable, + {} as Partial, + ) as ExportParameters, } as const; export type ExportQueryParameters = FromSchema<