Skip to content

Commit 38f6b28

Browse files
authored
Merge pull request #528 from Yonava/te/fix-ts-errors
chore: fix some type imports
2 parents 6bb2e2d + 09678d3 commit 38f6b28

6 files changed

Lines changed: 10 additions & 9 deletions

File tree

client/src/graphs/collab/collabTag.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import colors from '@colors';
22
import type { Collaborator, CollaboratorMap } from '@graph/collab/types';
3-
import { type CircleSchema, circle } from '@shape/shapes/circle';
4-
import { type RectSchema, rect } from '@shape/shapes/rect';
3+
import { circle } from '@shape/shapes/circle';
4+
import type { CircleSchema } from '@shape/shapes/circle/types';
5+
import { rect } from '@shape/shapes/rect';
6+
import type { RectSchema } from '@shape/shapes/rect/types';
57

68
import type { Ref } from 'vue';
79

client/src/graphs/plugins/annotations/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import type { BaseGraph } from '@graph/base';
22
import type { GraphMouseEvent } from '@graph/base/types';
33
import { useNonNullGraphColors } from '@graph/themes/useGraphColors';
44
import type { Aggregator } from '@graph/types';
5-
import type { WithId } from '@shape/cacher';
65
import { circle } from '@shape/shapes/circle';
7-
import type { ScribbleSchema } from '@shape/shapes/scribble';
6+
import type { ScribbleSchema } from '@shape/shapes/scribble/types';
7+
import type { WithId } from '@shape/types';
88
import type { Coordinate } from '@shape/types/utility';
99
import colors from '@utils/colors';
1010
import type { Color } from '@utils/colors';

client/src/graphs/plugins/annotations/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ScribbleSchema } from '@shape/shapes/scribble';
1+
import type { ScribbleSchema } from '@shape/shapes/scribble/types';
22

33
/**
44
* a scribble that is on the graph as an annotation

client/src/graphs/themes/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { NodeAnchor } from '@graph/plugins/anchors/types';
22
import type { SupportedNodeShapes } from '@graph/schematics/node';
33
import type { EdgeGetterOrValue, GNode, NodeGetterOrValue } from '@graph/types';
4-
import type { FontWeight } from '@shape/types/utility';
4+
import type { FontWeight } from '@shape/text/types';
55
import type {
66
MaybeGetter,
77
MaybeGetterParams,

client/src/products/binary-trees/ui/AddNodePanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
const getNumbers = () => {
1515
const treeArr = props.tree.tree
1616
.toArray()
17-
.filter((num) => num !== undefined);
17+
.filter((num): num is number => num !== undefined);
1818
1919
if (treeArr.length === 0) return [1, 2, 3, 4, 5];
2020
const min = Math.min(...treeArr);

client/src/utils/localStorage.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import type { Camera } from '@canvas/camera';
2-
import type { MagicCanvasOptions } from '@canvas/index';
1+
import type { MagicCanvasOptions } from '@canvas/types';
32
// @typescript-eslint/no-unused-vars reports unused even if referenced in jsdoc
43
/* eslint-disable */
54
import type { Graph } from '@graph/types';

0 commit comments

Comments
 (0)