Defensive Programming

Type safety practices including exhaustive checks, explicit return types, Result-based error handling, and non-mutating array methods. Use when writing TypeScript logic that handles multiple cases or error conditions, or when sorting, reversing, splicing, or replacing an element (indexed assignment) in an array you did not create.

trezor Updated

File contents

trezor/trezor-suite commit 9cfb2fca4c

Frequently asked questions

npx get-skill add trezor/defensive-programming