🎥 Make videos programmatically with React
Revert "ts magic"
Jonny Burgera8dc27d24600
diff --git a/packages/shapes/src/utils/make-circle.ts b/packages/shapes/src/utils/make-circle.tsindex c604af97dc..71e88aea45 100644--- a/packages/shapes/src/utils/make-circle.ts+++ b/packages/shapes/src/utils/make-circle.ts@@ -1,12 +1,12 @@import type {ShapeInfo} from './shape-info';-const radiusParam = {+const circleParams = {name: 'radius' as const,description: 'The radius of the circle',exampleValue: 10 as number,};-const options = [radiusParam] as const;+const options = [circleParams] as const;type Values = typeof options[number];export type MakeCircleProps = {[key in Values['name']]: Values['exampleValue']};diff --git a/packages/shapes/src/utils/make-ellipse.ts b/packages/shapes/src/utils/make-ellipse.tsindex 0506e4a128..494ad43797 100644--- a/packages/shapes/src/utils/make-ellipse.ts+++ b/packages/shapes/src/utils/make-ellipse.ts@@ -1,23 +1,8 @@import type {ShapeInfo} from './shape-info';-const rxParam = {- name: 'rx' as const,- description: 'The x-radius of the ellipse',- exampleValue: 10 as number,-};--const ryParam = {- name: 'ry' as const,- description: 'The y-radius of the ellipse',- exampleValue: 10 as number,-};--const options = [rxParam, ryParam] as const;--type Values = typeof options[number];-export type MakeEllipseOptions = {- [key in Values['name']]: Values['exampleValue'];+ rx: number;+ ry: number;};export const makeEllipse = ({rx, ry}: MakeEllipseOptions): ShapeInfo => {