Skip to content

Commit 6577197

Browse files
fix(lint): Ignore implicit any in utils\normalize.ts (#3109)
1 parent 8236a9e commit 6577197

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/js/utils/normalize.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ const KEY = 'value';
55
/**
66
* Converts any input into a valid record with string keys.
77
*/
8+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
89
export function convertToNormalizedObject(data: unknown): Record<string, any> {
910
const normalized: unknown = normalize(data);
1011
if (normalized === null || typeof normalized !== 'object') {
1112
return {
1213
[KEY]: normalized,
1314
};
1415
} else {
16+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1517
return normalized as Record<string, any>;
1618
}
1719
}

0 commit comments

Comments
 (0)