fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #102 from nicolas-chaulet/refactor/types-generic

refactor(types): move generic types to types folder

authored by

Lubos and committed by
GitHub
83821383 df992785

+20 -20
+1 -1
src/openApi/v2/interfaces/OpenApi.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApiExternalDocs } from './OpenApiExternalDocs'; 3 3 import type { OpenApiInfo } from './OpenApiInfo'; 4 4 import type { OpenApiParameter } from './OpenApiParameter';
+1 -1
src/openApi/v2/interfaces/OpenApiHeader.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApiItems } from './OpenApiItems'; 3 3 4 4 /**
+1 -1
src/openApi/v2/interfaces/OpenApiResponse.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApiExample } from './OpenApiExample'; 3 3 import type { OpenApiHeader } from './OpenApiHeader'; 4 4 import type { OpenApiReference } from './OpenApiReference';
+1 -1
src/openApi/v2/interfaces/OpenApiSchema.ts
··· 1 1 import type { WithEnumExtension } from '../../../types/client'; 2 - import type { Dictionary } from '../../../utils/types'; 2 + import type { Dictionary } from '../../../types/generic'; 3 3 import type { WithNullableExtension } from './Extensions/WithNullableExtension'; 4 4 import type { OpenApiExternalDocs } from './OpenApiExternalDocs'; 5 5 import type { OpenApiReference } from './OpenApiReference';
+1 -1
src/openApi/v2/interfaces/OpenApiSecurityScheme.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 3 3 /** 4 4 * https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#securitySchemeObject
+1 -1
src/openApi/v3/interfaces/OpenApiComponents.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApiCallback } from './OpenApiCallback'; 3 3 import type { OpenApiExample } from './OpenApiExample'; 4 4 import type { OpenApiHeader } from './OpenApiHeader';
+1 -1
src/openApi/v3/interfaces/OpenApiDiscriminator.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 3 3 /** 4 4 * https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#discriminatorObject
+1 -1
src/openApi/v3/interfaces/OpenApiEncoding.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApiHeader } from './OpenApiHeader'; 3 3 4 4 /**
+1 -1
src/openApi/v3/interfaces/OpenApiHeader.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApiExample } from './OpenApiExample'; 3 3 import type { OpenApiReference } from './OpenApiReference'; 4 4 import type { OpenApiSchema } from './OpenApiSchema';
+1 -1
src/openApi/v3/interfaces/OpenApiLink.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApiReference } from './OpenApiReference'; 3 3 import type { OpenApiServer } from './OpenApiServer'; 4 4
+1 -1
src/openApi/v3/interfaces/OpenApiMediaType.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApiEncoding } from './OpenApiEncoding'; 3 3 import type { OpenApiExample } from './OpenApiExample'; 4 4 import type { OpenApiReference } from './OpenApiReference';
+1 -1
src/openApi/v3/interfaces/OpenApiOAuthFlow.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 3 3 /** 4 4 * https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#oauthFlowObject
+1 -1
src/openApi/v3/interfaces/OpenApiOperation.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApiCallback } from './OpenApiCallback'; 3 3 import type { OpenApiExternalDocs } from './OpenApiExternalDocs'; 4 4 import type { OpenApiParameter } from './OpenApiParameter';
+1 -1
src/openApi/v3/interfaces/OpenApiParameter.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApiExample } from './OpenApiExample'; 3 3 import type { OpenApiReference } from './OpenApiReference'; 4 4 import type { OpenApiSchema } from './OpenApiSchema';
+1 -1
src/openApi/v3/interfaces/OpenApiRequestBody.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApiMediaType } from './OpenApiMediaType'; 3 3 import type { OpenApiReference } from './OpenApiReference'; 4 4
+1 -1
src/openApi/v3/interfaces/OpenApiResponse.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApiHeader } from './OpenApiHeader'; 3 3 import type { OpenApiLink } from './OpenApiLink'; 4 4 import type { OpenApiMediaType } from './OpenApiMediaType';
+1 -1
src/openApi/v3/interfaces/OpenApiSchema.ts
··· 1 1 import type { WithEnumExtension } from '../../../types/client'; 2 - import type { Dictionary } from '../../../utils/types'; 2 + import type { Dictionary } from '../../../types/generic'; 3 3 import type { OpenApiDiscriminator } from './OpenApiDiscriminator'; 4 4 import type { OpenApiExternalDocs } from './OpenApiExternalDocs'; 5 5 import type { OpenApiReference } from './OpenApiReference';
+1 -1
src/openApi/v3/interfaces/OpenApiServer.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApiServerVariable } from './OpenApiServerVariable'; 3 3 4 4 /**
+1 -1
src/openApi/v3/parser/getContent.ts
··· 1 - import type { Dictionary } from '../../../utils/types'; 1 + import type { Dictionary } from '../../../types/generic'; 2 2 import type { OpenApi } from '../interfaces/OpenApi'; 3 3 import type { OpenApiMediaType } from '../interfaces/OpenApiMediaType'; 4 4 import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
+1 -1
src/utils/discriminator.ts
··· 1 1 import type { OpenApi } from '../openApi/v3/interfaces/OpenApi'; 2 2 import type { OpenApiDiscriminator } from '../openApi/v3/interfaces/OpenApiDiscriminator'; 3 3 import type { Model } from '../types/client'; 4 + import type { Dictionary } from '../types/generic'; 4 5 import { stripNamespace } from './stripNamespace'; 5 - import type { Dictionary } from './types'; 6 6 7 7 const inverseDictionary = (map: Dictionary<string>): Dictionary<string> => { 8 8 const m2: Dictionary<string> = {};
src/utils/types.ts src/types/generic.ts