Skip to content

🎥 Make videos programmatically with React

Revert "typescript magic in circle"

Jonny Burger76f48e8a0cd1
diff --git a/packages/docs/docs/shapes/make-triangle.md b/packages/docs/docs/shapes/make-triangle.md
index 3b31e3512e..12d46efeb5 100644
--- a/packages/docs/docs/shapes/make-triangle.md
+++ b/packages/docs/docs/shapes/make-triangle.md
@@ -38,6 +38,4 @@ Source code stems mostly from [triangle](https://stackblitz.com/edit/react-trian
## See also
-import {MakeShapeSeeAlso} from "../../components/shapes/shapes-info"
-
<MakeShapeSeeAlso shape="triangle"/>
diff --git a/packages/shapes/src/utils/make-circle.ts b/packages/shapes/src/utils/make-circle.ts
index 71e88aea45..bbfb8e855c 100644
--- a/packages/shapes/src/utils/make-circle.ts
+++ b/packages/shapes/src/utils/make-circle.ts
@@ -1,16 +1,9 @@
import type {ShapeInfo} from './shape-info';
-const circleParams = {
- name: 'radius' as const,
- description: 'The radius of the circle',
- exampleValue: 10 as number,
+export type MakeCircleProps = {
+ radius: number;
};
-const options = [circleParams] as const;
-
-type Values = typeof options[number];
-export type MakeCircleProps = {[key in Values['name']]: Values['exampleValue']};
-
export const makeCircle = ({radius}: MakeCircleProps): ShapeInfo => {
const cx = radius;
const cy = radius;
diff --git a/packages/shapes/src/utils/shape-info.ts b/packages/shapes/src/utils/shape-info.ts
index db6b0cdbbb..7784a5a90a 100644
--- a/packages/shapes/src/utils/shape-info.ts
+++ b/packages/shapes/src/utils/shape-info.ts
@@ -3,9 +3,3 @@ export type ShapeInfo = {
width: number;
height: number;
};
-
-export type ShapeOption<Name, Type> = {
- name: Name;
- description: string;
- exampleValue: Type;
-};