Skip to content

improve models types #147

Description

@BioPhoton

In the code we often have to access types over the index. AuditGroup['refs'][0]

If we would introduce a better organisation in models we could benefit.

Possible new types:

  • type RefBase = {slug: string}
  • type ScoreableReference = RefBase & { score: number}
  • type WeightableReference = RefBase & { weight: number}
    ...

Activity

  1. added this to the 1. Internal MVP milestone on Oct 24, 2023
  2. changed the title [-]Improve `PluginConfig` and `CategoryConfig` typing[/-] [+]improve models types[/+] on Oct 29, 2023
  3. self-assigned this
    on Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions