Skip to content

Commit

Permalink
[Chore][OAS] Remove use of any in generator lib utility (#192440)
Browse files Browse the repository at this point in the history
## Summary

Tiny change, using a cast to `Record` instead of relying on `any`.

(cherry picked from commit 9c18dfa)
  • Loading branch information
jloleysens committed Sep 13, 2024
1 parent 7c265ec commit 5687a62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export const processDiscontinued = (schema: OpenAPIV3.SchemaObject): void => {
};

/** Just for type convenience */
export const deleteField = (schema: Record<any, unknown>, field: string): void => {
delete schema[field];
export const deleteField = (schema: object, field: string): void => {
delete (schema as Record<string, unknown>)[field];
};

export const isAnyType = (schema: OpenAPIV3.SchemaObject): boolean => {
Expand Down

0 comments on commit 5687a62

Please sign in to comment.