Skip to content

Missing TypeScript definitions for deltaEOK2 and deltaEHCT methods #710

@Yunhh-Hahn

Description

@Yunhh-Hahn

Hi, I can't tell whether this was intentional decision or a oversight while making the type definition so if it was, u can go ahead and close it

Description

The TypeScript definitions in types/src/color.d.ts are missing type definitions for deltaEOK2 and deltaEHCT methods, even though they are exported in src/deltaE/index.js.

Current Behavior

  • deltaEOK2 and deltaEHCT are exported from src/deltaE/index.js
  • These methods are functional and work at runtime
  • TypeScript definitions are missing, causing type errors when trying to use these methods

Code References
Exports: https://github.com/color-js/color.js/blob/main/src/deltaE/index.js#L17-L24
Missing from: types/src/color.d.ts

Result:
User can in fact use the method, but TypeScript will complain

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions