Skip to content

Types of multiple things are sometimes confusing #113

@EdJoPaTo

Description

@EdJoPaTo

Currently there are types like Claims or PropertyClaims. Just from looking at them its hard to know what they are exactly. (hint: Claims = Record<PropertyId, Claim[]> and PropertyClaims = Claim[])

Especially confusing with the Claims and PropertyClaims is the fact that only the first actually involves PropertyId while the second is what is behind a PropertyId.

Personally I would like to remove at least the types which are arrays of another type. Maybe also the Record<…, …> types. Specifying them explicitly at the given function / type improves readability about what to expect.

Any thoughts on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions