Skip to content

🎥 Make videos programmatically with React

Update comp-type-tests.tsx

Jonny Burgerff7dbfc8d88d
diff --git a/packages/example/src/comp-type-tests.tsx b/packages/example/src/comp-type-tests.tsx
index 9a5494f181..adb9928da4 100644
--- a/packages/example/src/comp-type-tests.tsx
+++ b/packages/example/src/comp-type-tests.tsx
@@ -73,3 +73,14 @@ const CompWithNoProps: React.FC = () => {
};
<Still component={CompWithNoProps} height={1080} width={1080} id="no-props" />;
+
+// @ts-expect-error Should be a type error since we leave out the defaultProps
+<Still
+ component={CompWithNoProps}
+ height={1080}
+ width={1080}
+ id="no-props-but-schema"
+ schema={z.object({
+ a: z.string(),
+ })}
+/>;