Skip to content

Commit

Permalink
Fix @hello-pangea/dnd type error
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Sep 19, 2023
1 parent f0c5f35 commit 2bda46a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/plugins/timelines/public/hooks/use_add_to_timeline.ts
Expand Up @@ -8,14 +8,17 @@ import type { Position } from 'css-box-model';
import { range } from 'd3-array';
import { interpolate } from 'd3-interpolate';
import { useCallback } from 'react';
import type { DraggableId, FluidDragActions, SensorAPI } from '@hello-pangea/dnd';
import type { DraggableId, PreDragActions, SensorAPI } from '@hello-pangea/dnd';

import {
EMPTY_PROVIDERS_GROUP_CLASS_NAME,
HIGHLIGHTED_DROP_TARGET_CLASS_NAME,
IS_DRAGGING_CLASS_NAME,
} from '@kbn/securitysolution-t-grid';

// TODO: This type can be imported directly from @hello-pangea/dnd once on v16.3.0, which requires Webpack v5
type FluidDragActions = ReturnType<PreDragActions['fluidLift']>;

let _sensorApiSingleton: SensorAPI;

/**
Expand Down

0 comments on commit 2bda46a

Please sign in to comment.