Skip to content

Commit

Permalink
lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilianoBruni committed Feb 13, 2024
1 parent 4d2aa8c commit 84e44dd
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

export type TFMAFiltersPagination = {
offset?: number;
skip?: number;
Expand Down Expand Up @@ -26,16 +25,30 @@ export type TFMAFiltersSearch = {
filter?: string;
};

export type TFMAFilters = TFMAFiltersPagination & TFMAFiletrsSort & TFMAFiltersProjection & TFMAFiltersSearch & TFMAFiltersPopulate;
export type TFMAFilters = TFMAFiltersPagination &
TFMAFiletrsSort &
TFMAFiltersProjection &
TFMAFiltersSearch &
TFMAFiltersPopulate;

export type TFMASchemaVerbs = 'routeGet' | 'routePost' | 'routePut' | 'routeDelete' | 'routePatch' | 'routeList';
export type TFMASchemaVerbs =
| 'routeGet'
| 'routePost'
| 'routePut'
| 'routeDelete'
| 'routePatch'
| 'routeList';

export type TFMASchema = {
summary: string;
tags: Array<string>;
params?: ajvSchema
query?: Omit<ajvSchema, 'properties'> & { properties: Partial<Record<keyof TFMAFilters, ajvSchema>>};
querystring?: Omit<ajvSchema, 'properties'> & { properties: Partial<Record<keyof TFMAFilters, ajvSchema>>};
params?: ajvSchema;
query?: Omit<ajvSchema, 'properties'> & {
properties: Partial<Record<keyof TFMAFilters, ajvSchema>>;
};
querystring?: Omit<ajvSchema, 'properties'> & {
properties: Partial<Record<keyof TFMAFilters, ajvSchema>>;
};
body?: any;
response?: {
200?: ajvSchema;
Expand All @@ -60,9 +73,9 @@ export type ajvType =
| 'null'
| 'timestamp';

export type ajvProperty = {
export type ajvProperty = {
[key: string]: ajvSchema | ajvProperties;
}
};

export type ajvProperties = {
properties?: ajvProperty;
Expand Down

0 comments on commit 84e44dd

Please sign in to comment.