Skip to content

refactor: remove any and as throughout codebase#1323

Open
jescalada wants to merge 69 commits intofinos:mainfrom
jescalada:1174-remove-any-and-as-ts-wrapup
Open

refactor: remove any and as throughout codebase#1323
jescalada wants to merge 69 commits intofinos:mainfrom
jescalada:1174-remove-any-and-as-ts-wrapup

Conversation

@jescalada
Copy link
Contributor

Fixes #1174.

Sets stub types to (`ReturnType<typeof vi.fn>`) to remove the any type
@netlify
Copy link

netlify bot commented Dec 15, 2025

Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Name Link
🔨 Latest commit 4b7d295
🔍 Latest deploy log https://app.netlify.com/projects/endearing-brigadeiros-63f9d0/deploys/69af957d94c30700098c1646

@jescalada
Copy link
Contributor Author

@kriswest Ready for a final look!

@jescalada jescalada requested a review from kriswest February 21, 2026 14:51
@kriswest
Copy link
Contributor

@jescalada trying to fit in a final pass, but you've developed a whole load of conflicts unfortunately.

@jescalada
Copy link
Contributor Author

jescalada commented Feb 25, 2026

@kriswest @andypols Conflicts fixed!

Copy link
Contributor

@kriswest kriswest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM, one small issue. The very large diff includes changes from other PRs - that can be avoided by rebasing main rather than merging in future.

I think it best if this goes in ASAP as its getting way too long to review effectively.

One small error to fix + a minor refinement suggested.

@jescalada
Copy link
Contributor Author

jescalada commented Mar 5, 2026

@kriswest Should be ready now! Coverage is 89.69%, which is much better than I imagined despite the extra code. Might be worth taking another pass at improving coverage down the line, but we're at a much better spot compared to March last year (62%).

@jescalada jescalada requested a review from kriswest March 5, 2026 15:47
@kriswest
Copy link
Contributor

kriswest commented Mar 9, 2026

@jescalada gah merging the license header PR touched all 109 files again 😭 These beasts are best off rebased whereever possible so the diff only shows this PRs changes, rather than everything merged into them. Hopefully that results in the same number of conflicts to resolve, although that depends on how much rework happened in the PR.

Edit: ignore me, github review interface was miscounting changes - not all 109 were touched (more like 80 or 90)

Copy link
Contributor

@kriswest kriswest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One or two minor issues to correct still (including a couple of places we've picked up double license headers), a couple of minor improvement suggestions and one thing I think you should revert (in an area I feel like I should have hung an "abandon hope all ye who enter here" sign on!)

Copy link
Contributor

@kriswest kriswest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One or two minor issues to correct still (including a couple of places we've picked up double license headers), a couple of minor improvement suggestions and one thing I think you should revert (in an area I feel like I should have hung an "abandon hope all ye who enter here" sign on!)

@jescalada
Copy link
Contributor Author

@kriswest Ready for another look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up any and as in TS files

2 participants