From 1b3b03f3890979ce70c5f3d1d3c4c839a0fe3f14 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sun, 8 Oct 2023 00:49:23 +0200 Subject: [PATCH] chore: cleanup --- packages/controls/tsconfig.json | 3 ++- packages/minimap/src/types.ts | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/controls/tsconfig.json b/packages/controls/tsconfig.json index 8b719321..8300e148 100644 --- a/packages/controls/tsconfig.json +++ b/packages/controls/tsconfig.json @@ -4,7 +4,8 @@ "baseUrl": ".", "declarationDir": "./dist", "types": [ - "vite/client" + "vite/client", + "vue/macros" ] }, "include": [ diff --git a/packages/minimap/src/types.ts b/packages/minimap/src/types.ts index f2f742b3..1e0b262d 100644 --- a/packages/minimap/src/types.ts +++ b/packages/minimap/src/types.ts @@ -3,9 +3,6 @@ import type { CSSProperties, InjectionKey, Slots } from 'vue' /** expects a node and returns a color value */ export type MiniMapNodeFunc = (node: GraphNode) => string -// hack for vue-type imports -type MiniMapNodeFunc2 = (node: GraphNode) => string -type MiniMapNodeFunc3 = (node: GraphNode) => string export type ShapeRendering = CSSProperties['shapeRendering'] @@ -13,9 +10,9 @@ export interface MiniMapProps { /** Node color, can be either a string or a string func that receives the current node */ nodeColor?: string | MiniMapNodeFunc /** Node stroke color, can be either a string or a string func that receives the current node */ - nodeStrokeColor?: string | MiniMapNodeFunc2 + nodeStrokeColor?: string | MiniMapNodeFunc /** Additional node class name, can be either a string or a string func that receives the current node */ - nodeClassName?: string | MiniMapNodeFunc3 + nodeClassName?: string | MiniMapNodeFunc /** Node border radius */ nodeBorderRadius?: number /** Node stroke width */