Skip to content

Export the drag'n'drop types #2172

@timroes

Description

@timroes

We currently don't export any of the drag'n'drop types that will be passed into the drag'n'drop callback methods a user needs to specify. That causes people to do produce code that either contains any: https://github.com/elastic/kibana/pull/40866/files#diff-5196c51faa9492fb15b9d72ffd692ee3R109 or write some complex helper utilities to get those (https://github.com/elastic/kibana/blob/master/x-pack/legacy/common/eui_draggable/index.d.ts#L17). I think it would make sense to export DropResult and the other parameters that will be passed into the drag'n'drop handlers from EUI directly (so we abstract away from the underlying React DnD library.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions