Skip to content

Commit 45fb9a2

Browse files
authored
fix(💄): Minor TS improvement (#343)
1 parent 2c75fc0 commit 45fb9a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Paths.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,15 @@ export const interpolatePath = <T extends number[]>(
174174

175175
export const move = (x: number, y: number) => {
176176
"worklet";
177-
return { type: SVGCommand.MOVE, x, y };
177+
return { type: SVGCommand.MOVE as const, x, y };
178178
};
179179

180180
export const curve = (c: Omit<Curve, "type">) => {
181181
"worklet";
182-
return { type: SVGCommand.CURVE, c1: c.c1, c2: c.c2, to: c.to };
182+
return { type: SVGCommand.CURVE as const, c1: c.c1, c2: c.c2, to: c.to };
183183
};
184184

185185
export const close = () => {
186186
"worklet";
187-
return { type: SVGCommand.CLOSE };
187+
return { type: SVGCommand.CLOSE as const };
188188
};

0 commit comments

Comments
 (0)