Skip to content

frontend: convert utils/equal to typescript #3344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

thisconnect
Copy link
Collaborator

No description provided.

@thisconnect thisconnect requested review from shonsirsha and removed request for shonsirsha May 13, 2025 07:04
@thisconnect thisconnect marked this pull request as draft May 13, 2025 07:32
@thisconnect thisconnect force-pushed the frontend-utilsequal-in-typescript branch 3 times, most recently from 23a4c21 to b85f8d1 Compare May 13, 2025 09:05
Simplifying so that TypeScript better understand the code and we
can change from any to unknown in the future.
Using `unknown` enforces type safety by requiring explicit type
checks or assertions before performing operations on the values.

Also updated `Object.keys` usage with a more precise type assertion
to satisfy TypeScript's stricter checks when working with `unknown`.

This version now also supports date and regexp.
@thisconnect thisconnect force-pushed the frontend-utilsequal-in-typescript branch from b85f8d1 to b642aef Compare May 21, 2025 17:04
@thisconnect thisconnect marked this pull request as ready for review May 21, 2025 19:22
@thisconnect thisconnect changed the title frontend: convert utils/equal in typescript frontend: convert utils/equal to typescript May 21, 2025
Fixed failing test introduced in last commit and correctly handle
sparse arrays.
@thisconnect thisconnect force-pushed the frontend-utilsequal-in-typescript branch from 639104e to 5ee9762 Compare May 21, 2025 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant