We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c75fc0 commit 45fb9a2Copy full SHA for 45fb9a2
src/Paths.ts
@@ -174,15 +174,15 @@ export const interpolatePath = <T extends number[]>(
174
175
export const move = (x: number, y: number) => {
176
"worklet";
177
- return { type: SVGCommand.MOVE, x, y };
+ return { type: SVGCommand.MOVE as const, x, y };
178
};
179
180
export const curve = (c: Omit<Curve, "type">) => {
181
182
- return { type: SVGCommand.CURVE, c1: c.c1, c2: c.c2, to: c.to };
+ return { type: SVGCommand.CURVE as const, c1: c.c1, c2: c.c2, to: c.to };
183
184
185
export const close = () => {
186
187
- return { type: SVGCommand.CLOSE };
+ return { type: SVGCommand.CLOSE as const };
188
0 commit comments