Skip to content

[wordpress__components] /color-picker/index.d.ts does not support updated properties #64541

@mogmarsh

Description

@mogmarsh

Discussed in #62576

Originally posted by mogmarsh October 5, 2022
@types/wordpress__components/color-picker/index.d.ts references deprecated properties and does not support new properties.

See WordPress/gutenberg@d2363e7 and WordPress/gutenberg#35220

From the changelog:

The ColorPicker component property onChangeComplete, a function accepting a color object, was replaced with the property onChange, a function accepting a string on (#35220).
The property disableAlpha, was removed from the ColorPicker component. Use the new opposite property enableAlpha instead (#35220).

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