Add .gitignore to exclude all node packages and lock files

This commit is contained in:
Adolfo Reyna
2026-02-23 21:56:04 -05:00
parent faae96c9ed
commit dcc5c6c044
9747 changed files with 1555105 additions and 2 deletions
@@ -0,0 +1,36 @@
import type { ComponentType } from 'react';
import type { CalculateMetadataFunction } from 'remotion';
import type { AnyZodObject, z } from 'zod';
export type InferProps<Schema extends AnyZodObject, Props extends Record<string, unknown>> = AnyZodObject extends Schema ? {} extends Props ? Record<string, unknown> : Props : {} extends Props ? z.input<Schema> : z.input<Schema> & Props;
export type DefaultPropsIfHasProps<Schema extends AnyZodObject, Props> = AnyZodObject extends Schema ? {} extends Props ? {
defaultProps?: z.input<Schema> & Props;
} : {
defaultProps: Props;
} : {} extends Props ? {
defaultProps: z.input<Schema>;
} : {
defaultProps: z.input<Schema> & Props;
};
type LooseComponentType<T> = ComponentType<T> | ((props: T) => React.ReactNode);
type OptionalDimensions<Schema extends AnyZodObject, Props extends Record<string, unknown>> = {
component: LooseComponentType<Props>;
id: string;
width?: number;
height?: number;
calculateMetadata: CalculateMetadataFunction<InferProps<Schema, Props>>;
};
type MandatoryDimensions<Schema extends AnyZodObject, Props extends Record<string, unknown>> = {
component: LooseComponentType<Props>;
id: string;
width: number;
height: number;
calculateMetadata?: CalculateMetadataFunction<InferProps<Schema, Props>> | null;
};
export type CompositionCalculateMetadataOrExplicit<Schema extends AnyZodObject, Props extends Record<string, unknown>> = ((OptionalDimensions<Schema, Props> & {
fps?: number;
durationInFrames?: number;
}) | (MandatoryDimensions<Schema, Props> & {
fps: number;
durationInFrames: number;
})) & DefaultPropsIfHasProps<Schema, Props>;
export {};