Skip to content

Consider creating unified types for common variables #2114

@jovyntls

Description

@jovyntls

As we continue with the TypeScript migration (#1913), we may want to create unified types to be used across common method arguments. One example could be creating a Node type that is used throughout different methods/classes when the node parameter is passed around.

We'll need to decide:

  • When we want to do it — after we have fully migrated, or while the migration is currently underway, or if we even want to standardise these types at all
  • What the types should be (e.g. for Node, cheerio.Element & DomElement could be an option)
  • How to handle applying types across the whole codebase

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-CodeQualitys.UnderDiscussionThe team will evaluate this issue to decide whether it is worth adding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions