mirror of
https://github.com/Comfy-Org/Comfy-PR.git
synced 2026-11-04 23:37:33 +00:00
[PR #155] [MERGED] feat: ban 'as any' type assertions and fix all violations #155
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/Comfy-PR#155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/Comfy-PR/pull/155
Author: @comfy-pr-bot
Created: 2/6/2026
Status: ✅ Merged
Merged: 2/6/2026
Merged by: @comfy-pr-bot
Base:
main← Head:sno-bot📝 Commits (2)
2eda6e6feat: ban 'as any' type assertions with enhanced type safety rules188c892fix: replace all 'as any' type assertions with proper types📊 Changes
88 files changed (+538 additions, -586 deletions)
View changed files
📝
.oxlintrc.json(+8 -2)📝
app/(dashboard)/cnrepos/CNReposTableClient.tsx(+2 -2)📝
app/(dashboard)/repos/page.tsx(+1 -1)📝
app/(dashboard)/rules/[name]/RuleSetWhirler.tsx(+1 -1)📝
app/(dashboard)/rules/page.tsx(+2 -2)📝
app/api/router.ts(+3 -3)📝
app/api/webhook/github/route.spec.ts(+7 -6)📝
app/api/webhook/github/route.ts(+1 -1)📝
app/api/webhook/github/webhook-events.ts(+1 -1)📝
app/tasks/coreping/coreping.ts(+3 -3)📝
app/tasks/gh-core-tag-notification/index.spec.ts(+27 -12)📝
app/tasks/gh-design/GithubDesignTaskMetaEditor.tsx(+1 -1)📝
app/tasks/gh-design/createTimeLogger.ts(+1 -1)📝
app/tasks/gh-design/gh-design.ts(+1 -1)📝
app/tasks/gh-desktop-release-notification/index.spec.ts(+26 -16)📝
app/tasks/gh-frontend-release-notification/index.spec.ts(+23 -9)📝
app/tasks/gh-issue-transfer-comfyui-to-frontend/index.spec.ts(+6 -6)📝
app/tasks/gh-issue-transfer-comfyui-to-workflow_templates/index.spec.ts(+5 -5)📝
app/tasks/gh-issue-transfer-desktop-to-frontend/index.spec.ts(+6 -6)📝
app/tasks/gh-issue-transfer-frontend-to-comfyui/index.spec.ts(+6 -6)...and 68 more files
📄 Description
Summary
Complete type safety improvement by banning
as anytype assertions and fixing all 311 violations across the codebase.Changes
1. Enhanced Type Safety Rules (
2eda6e6)Updated
.oxlintrc.jsonwith strict type safety enforcement:2. Fixed All Violations (
188c892)Fixed 311 violations across 86 files:
Major Files
bot/slack-bot.ts(29 violations): Added proper Zod schemas for Slack events, blocks, attachmentspackages/mongodb-pipeline-ts/$pipeline.ts(16 violations): Proper generic typeslib/slack/*.ts(30+ violations): Type-safe Slack API responsessrc/*.ts(15+ violations): Proper types andRecord<string, unknown>for dynamic objectsapp/tasks/*.spec.ts(45+ violations): Type-safe test mocksCommon Fix Patterns
Testing
no-explicit-anyerrorsVerification
Impact
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.