Skip to content

🎥 Make videos programmatically with React

feat(@remotion/example): added example tuple to schema-test composition

mafo617e4eaf43cc
diff --git a/packages/example/src/Root.tsx b/packages/example/src/Root.tsx
index 79f7fe22fc..660fb92c9e 100644
--- a/packages/example/src/Root.tsx
+++ b/packages/example/src/Root.tsx
@@ -1276,6 +1276,7 @@ export const Index: React.FC = () => {
{type: 'b' as const, b: {b: 'hi'}},
],
discriminatedUnion: {type: 'auto'},
+ tuple: ['foo', 42, {a: 'hi'}],
}}
/>
{/**
diff --git a/packages/example/src/SchemaTest/index.tsx b/packages/example/src/SchemaTest/index.tsx
index 9ae26318ac..dbedeaa979 100644
--- a/packages/example/src/SchemaTest/index.tsx
+++ b/packages/example/src/SchemaTest/index.tsx
@@ -31,6 +31,7 @@ export const schemaTestSchema = z.object({
value: z.number().min(1080),
}),
]),
+ tuple: z.tuple([z.string(), z.number(), z.object({a: z.string()})]),
});
export const schemaArrayTestSchema = z.array(z.number());