Skip to content

Commit

Permalink
fix(lint): Ignore implicit any in utils\normalize.ts (#3109)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-zimerman committed Jun 12, 2023
1 parent 8236a9e commit 6577197
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/utils/normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ const KEY = 'value';
/**
* Converts any input into a valid record with string keys.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function convertToNormalizedObject(data: unknown): Record<string, any> {
const normalized: unknown = normalize(data);
if (normalized === null || typeof normalized !== 'object') {
return {
[KEY]: normalized,
};
} else {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return normalized as Record<string, any>;
}
}

0 comments on commit 6577197

Please sign in to comment.