Skip to content

Commit 8b3b05c

Browse files
committed
chore: cleanup
1 parent d91166c commit 8b3b05c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/controls/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"baseUrl": ".",
55
"declarationDir": "./dist",
66
"types": [
7-
"vite/client"
7+
"vite/client",
8+
"vue/macros"
89
]
910
},
1011
"include": [

packages/minimap/src/types.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,16 @@ import type { CSSProperties, InjectionKey, Slots } from 'vue'
33

44
/** expects a node and returns a color value */
55
export type MiniMapNodeFunc = (node: GraphNode) => string
6-
// hack for vue-type imports
7-
type MiniMapNodeFunc2 = (node: GraphNode) => string
8-
type MiniMapNodeFunc3 = (node: GraphNode) => string
96

107
export type ShapeRendering = CSSProperties['shapeRendering']
118

129
export interface MiniMapProps {
1310
/** Node color, can be either a string or a string func that receives the current node */
1411
nodeColor?: string | MiniMapNodeFunc
1512
/** Node stroke color, can be either a string or a string func that receives the current node */
16-
nodeStrokeColor?: string | MiniMapNodeFunc2
13+
nodeStrokeColor?: string | MiniMapNodeFunc
1714
/** Additional node class name, can be either a string or a string func that receives the current node */
18-
nodeClassName?: string | MiniMapNodeFunc3
15+
nodeClassName?: string | MiniMapNodeFunc
1916
/** Node border radius */
2017
nodeBorderRadius?: number
2118
/** Node stroke width */

0 commit comments

Comments
 (0)