UNPKG

@remotion/player

Version:

React component for embedding a Remotion preview into your app

11 lines (10 loc) 340 B
import type { AnyZodObject, z } from 'zod'; export type PropsIfHasProps<Schema extends AnyZodObject, Props> = AnyZodObject extends Schema ? {} extends Props ? { inputProps?: z.input<Schema> & Props; } : { inputProps: Props; } : {} extends Props ? { inputProps: z.input<Schema>; } : { inputProps: z.input<Schema> & Props; };