generated from json-schema-org/repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Issue
Using Boolean (object wrapper) instead of boolean (primitive type) in type definitions, which violates TypeScript best practices.
Location
lib/types.ts - Lines 27, 36, 38
Why This Matters
- Type Safety:
Booleanaccepts Boolean object wrappers which can cause unexpected behavior - Truthiness Bug:
new Boolean(false)is truthy in conditionals, even though it wraps false - Performance: Primitive types are more efficient than object wrappers
- Best Practice: TypeScript style guide recommends lowercase primitive types
Solution
Replace all instances of Boolean with boolean:
Fix Applied
All three occurrences have been changed from Boolean to boolean in the TestCase and TestCaseResult type definitions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels