We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8236a9e commit 6577197Copy full SHA for 6577197
src/js/utils/normalize.ts
@@ -5,13 +5,15 @@ const KEY = 'value';
5
/**
6
* Converts any input into a valid record with string keys.
7
*/
8
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
9
export function convertToNormalizedObject(data: unknown): Record<string, any> {
10
const normalized: unknown = normalize(data);
11
if (normalized === null || typeof normalized !== 'object') {
12
return {
13
[KEY]: normalized,
14
};
15
} else {
16
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
return normalized as Record<string, any>;
18
}
19
0 commit comments