Skip to content

Conversation

@YoniKiriaty
Copy link
Contributor

No description provided.

@YoniKiriaty YoniKiriaty self-assigned this Jan 28, 2026
@YoniKiriaty YoniKiriaty added the feature A new Feature! label Jan 28, 2026
obj[key] !== null &&
!Array.isArray(obj[key])
) {
Object.assign(acc, flattenToDotNotation(obj[key], pre + key));

Check warning

Code scanning / ESLint

Disallow calling a function with a value with type `any` Warning

Unsafe argument of type error typed assigned to a parameter of type object.
) {
Object.assign(acc, flattenToDotNotation(obj[key], pre + key));
} else {
acc[pre + key] = obj[key];

Check warning

Code scanning / ESLint

Disallow assigning a value with type `any` to variables and properties Warning

Unsafe assignment of an error typed value.
Comment on lines +22 to +39
pipe(
query,
Object.entries,
(entries) =>
entries.map(([key, value]) => [
key,
value && typeof value === "object"
? castQuery(value)
: typeof value === "string" && !isNaN(Number(value)) && value !== ""
? Number(value)
: value === "true"
? true
: value === "false"
? false
: value,
]),
Object.fromEntries,
);

Check warning

Code scanning / ESLint

Disallow returning a value with type `any` from a function Warning

Unsafe return of a value of type any.
Comment on lines +26 to +37
entries.map(([key, value]) => [
key,
value && typeof value === "object"
? castQuery(value)
: typeof value === "string" && !isNaN(Number(value)) && value !== ""
? Number(value)
: value === "true"
? true
: value === "false"
? false
: value,
]),

Check warning

Code scanning / ESLint

Disallow returning a value with type `any` from a function Warning

Unsafe return of a value of type any[].
entries.map(([key, value]) => [
key,
value && typeof value === "object"
? castQuery(value)

Check warning

Code scanning / ESLint

Disallow calling a function with a value with type `any` Warning

Unsafe argument of type any assigned to a parameter of type object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A new Feature!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants