From b2a2ce8ca1a66f2a690a36fdd079f220c342ec0a Mon Sep 17 00:00:00 2001 From: Mohammad Al Faiyaz Date: Thu, 30 Oct 2025 11:10:17 -0400 Subject: [PATCH] chore: type guidance for ai Ticket: WP-000000 TICKET: WP-000000 --- CLAUDE.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 5feb8edf25..8fa356b2b2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -70,6 +70,9 @@ yarn compile-dbg ### Commits BitGoJS uses conventional commits. All commits MUST pass the spec described in `commitlint.config.js`. +### TypeScript Guidelines +- **Avoid `any` type**: Use specific types, interfaces, or union types instead of `any`. If absolutely necessary, prefer `unknown` and use type guards for safety. + ## Code Architecture BitGoJS is a monorepo composed of multiple modules, each implementing specific functionality: