Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions client/src/graphs/collab/collabTag.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import colors from '@colors';
import type { Collaborator, CollaboratorMap } from '@graph/collab/types';
import { type CircleSchema, circle } from '@shape/shapes/circle';
import { type RectSchema, rect } from '@shape/shapes/rect';
import { circle } from '@shape/shapes/circle';
import type { CircleSchema } from '@shape/shapes/circle/types';
import { rect } from '@shape/shapes/rect';
import type { RectSchema } from '@shape/shapes/rect/types';

import type { Ref } from 'vue';

Expand Down
4 changes: 2 additions & 2 deletions client/src/graphs/plugins/annotations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { BaseGraph } from '@graph/base';
import type { GraphMouseEvent } from '@graph/base/types';
import { useNonNullGraphColors } from '@graph/themes/useGraphColors';
import type { Aggregator } from '@graph/types';
import type { WithId } from '@shape/cacher';
import { circle } from '@shape/shapes/circle';
import type { ScribbleSchema } from '@shape/shapes/scribble';
import type { ScribbleSchema } from '@shape/shapes/scribble/types';
import type { WithId } from '@shape/types';
import type { Coordinate } from '@shape/types/utility';
import colors from '@utils/colors';
import type { Color } from '@utils/colors';
Expand Down
2 changes: 1 addition & 1 deletion client/src/graphs/plugins/annotations/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ScribbleSchema } from '@shape/shapes/scribble';
import type { ScribbleSchema } from '@shape/shapes/scribble/types';

/**
* a scribble that is on the graph as an annotation
Expand Down
2 changes: 1 addition & 1 deletion client/src/graphs/themes/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { NodeAnchor } from '@graph/plugins/anchors/types';
import type { SupportedNodeShapes } from '@graph/schematics/node';
import type { EdgeGetterOrValue, GNode, NodeGetterOrValue } from '@graph/types';
import type { FontWeight } from '@shape/types/utility';
import type { FontWeight } from '@shape/text/types';
import type {
MaybeGetter,
MaybeGetterParams,
Expand Down
2 changes: 1 addition & 1 deletion client/src/products/binary-trees/ui/AddNodePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
const getNumbers = () => {
const treeArr = props.tree.tree
.toArray()
.filter((num) => num !== undefined);
.filter((num): num is number => num !== undefined);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner

@Yonava Yonava Aug 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we are running TS version 5.4. Lets try to just bump it up a couple minors instead

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good!

if (treeArr.length === 0) return [1, 2, 3, 4, 5];
const min = Math.min(...treeArr);
Expand Down
2 changes: 1 addition & 1 deletion client/src/shapes/animation/timeline/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ export const compileTimeline = (timeline: Timeline<any>): CompiledTimeline => {
};
});

// @ts-expect-error could make TS happy, but would make this verbose unfortunately
return interpolation.fn(
keyframes,
getDefaultEasing(propName),
// @ts-expect-error could make TS happy, but would make this verbose unfortunately
rawPropVal,
)(progress);
};
Expand Down
3 changes: 1 addition & 2 deletions client/src/utils/localStorage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Camera } from '@canvas/camera';
import type { MagicCanvasOptions } from '@canvas/index';
import type { MagicCanvasOptions } from '@canvas/types';
// @typescript-eslint/no-unused-vars reports unused even if referenced in jsdoc
/* eslint-disable */
import type { Graph } from '@graph/types';
Expand Down