🎥 Make videos programmatically with React
remove `any` types
Jonny Burger7da13e27a524
diff --git a/packages/core/src/series/flatten-children.tsx b/packages/core/src/series/flatten-children.tsxindex 00acc0de89..7db6bcb868 100644--- a/packages/core/src/series/flatten-children.tsx+++ b/packages/core/src/series/flatten-children.tsx@@ -1,4 +1,4 @@-import React from 'react';+import React, {PropsWithChildren} from 'react';type ReactChildArray = ReturnType<typeof React.Children.toArray>;@@ -7,7 +7,10 @@ export const flattenChildren = (children: React.ReactNode): ReactChildArray => {return childrenArray.reduce((flatChildren: ReactChildArray, child) => {if ((child as React.ReactElement<unknown>).type === React.Fragment) {return flatChildren.concat(- flattenChildren((child as React.ReactElement<any>).props.children)+ flattenChildren(+ (child as React.ReactElement<PropsWithChildren<unknown>>).props+ .children+ ));}diff --git a/packages/create-video/src/prompts.ts b/packages/create-video/src/prompts.tsindex 7138b65735..0467810ee7 100644--- a/packages/create-video/src/prompts.ts+++ b/packages/create-video/src/prompts.ts@@ -28,7 +28,7 @@ prompt.separator = (title: string) => ({export async function selectAsync(questions: NamelessQuestion,options?: PromptOptions-): Promise<any> {+): Promise<unknown> {const {value} = await prompt({limit: 11,