Skip to content

Commit

Permalink
fix type issue. clsoe #1663
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrton committed Nov 8, 2023
1 parent bb649d9 commit 47e8d20
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/index-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,21 @@ declare namespace Konva {
export let hitOnDragEnabled: boolean;
export const isDragging: () => boolean;
export const isDragReady: () => boolean;
export const getAngle: (angle: number) => number;

export type Vector2d = import('./types').Vector2d;

export const Node: typeof import('./Node').Node;
export type Node = import('./Node').Node;
export type NodeConfig = import('./Node').NodeConfig;

export type KonvaEventObject<
EventType
> = import('./Node').KonvaEventObject<EventType>;
export type KonvaEventObject<EventType> =
import('./Node').KonvaEventObject<EventType>;

export type KonvaPointerEvent = import('./PointerEvents').KonvaPointerEvent;

export type KonvaEventListener<
This,
EventType
> = import('./Node').KonvaEventListener<This, EventType>;
export type KonvaEventListener<This, EventType> =
import('./Node').KonvaEventListener<This, EventType>;

export const Container: typeof import('./Container').Container;
export type Container = import('./Container').Container<Node>;
Expand Down Expand Up @@ -132,7 +130,8 @@ declare namespace Konva {
export type RectConfig = import('./shapes/Rect').RectConfig;
export const RegularPolygon: typeof import('./shapes/RegularPolygon').RegularPolygon;
export type RegularPolygon = import('./shapes/RegularPolygon').RegularPolygon;
export type RegularPolygonConfig = import('./shapes/RegularPolygon').RegularPolygonConfig;
export type RegularPolygonConfig =
import('./shapes/RegularPolygon').RegularPolygonConfig;
export const Ring: typeof import('./shapes/Ring').Ring;
export type Ring = import('./shapes/Ring').Ring;
export type RingConfig = import('./shapes/Ring').RingConfig;
Expand All @@ -150,7 +149,8 @@ declare namespace Konva {
export type TextPathConfig = import('./shapes/TextPath').TextPathConfig;
export const Transformer: typeof import('./shapes/Transformer').Transformer;
export type Transformer = import('./shapes/Transformer').Transformer;
export type TransformerConfig = import('./shapes/Transformer').TransformerConfig;
export type TransformerConfig =
import('./shapes/Transformer').TransformerConfig;
export const Wedge: typeof import('./shapes/Wedge').Wedge;
export type Wedge = import('./shapes/Wedge').Wedge;
export type WedgeConfig = import('./shapes/Wedge').WedgeConfig;
Expand Down

0 comments on commit 47e8d20

Please sign in to comment.