with one click
typescript
TypeScript + React typing conventions for Ledger Wallet. Read when writing or reviewing .ts and .tsx files.
Menu
TypeScript + React typing conventions for Ledger Wallet. Read when writing or reviewing .ts and .tsx files.
| name | typescript |
| description | TypeScript + React typing conventions for Ledger Wallet. Read when writing or reviewing .ts and .tsx files. |
| globs | ["**/*.ts","**/*.tsx"] |
React.FC only when children typing is needed; otherwise avoid.React.memo, useMemo, useCallback).readonly for immutable props/state shapes.any; use unknown when necessary.types.ts files.code and optional context.Result<T, E> patterns for recoverable failures.async/await.try/catch.as const for literals.Repo-wide conventions for code comments. Read this when reviewing or adding code comments.
Create a pull request with proper description, changeset, and all required elements
Official Ledger wallet-cli - USB-based CLI for Ledger hardware wallet flows (account discover, receive, balances, operations, send, swap quote/execute/status, genuine-check, assets token / token-by-id). Use for any wallet-cli command execution and for mapping informal requests to the right command.
Guided feature development with codebase understanding and architecture focus
Write unit and integration tests for Ledger Wallet apps. Use for Jest tests (Desktop/Mobile), MSW handlers and testing best practices. Applies to "*.test.*", "*.spec.*", "**/tests/**", "**/__tests__/**", "**/__integrations__/**", "**/jest-setup*"
Coin-specific families logic must live in families/. Generic UI uses the families contract only (no if (family === "evm") in shared code). Use this guidance for work in "**/families/**", "**/mvvm/**", "**/renderer/**" and "**/screens/**".