TRAITS

named-collection-element-types

Define and reference a descriptive named element type when typing collections and their working elements or batches, rather than extracting the element type from a collection variable with indexed access such as (typeof batches)[number]. Introduce a named type when none exists instead of using that variable-based extraction.

7efec022 · Source (opens in a new tab)

Skipping this trait

Add this comment before any code to skip the trait for a whole file. A reason is required.

File header
// traits-ignore-file 7efec022-dc69-4c59-b1d3-0380fd8eddfe: <reason>