Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 413 Bytes

no-inferrable-types.md

File metadata and controls

13 lines (7 loc) · 413 Bytes

Pattern: Explicit number, string, or boolean declaration

Issue: -

Description

Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

Rationale: Explicit types where they can be easily inferred by the compiler make code more verbose.

Further Reading