Type alias ObjectPropertiesSchema<T>

ObjectPropertiesSchema<T>: true extends IsNonPrimitiveSubsetUnion<Exclude<T, undefined | null>>
    ? AlternativesSchema
    : T extends NullableType<string>
        ? StringSchema
        : T extends NullableType<number>
            ? NumberSchema
            : T extends NullableType<bigint>
                ? NumberSchema
                : T extends NullableType<boolean>
                    ? BooleanSchema
                    : T extends NullableType<Date>
                        ? DateSchema
                        : T extends NullableType<Buffer>
                            ? BinarySchema
                            : T extends NullableType<any[]>
                                ? ArraySchema
                                : T extends NullableType<object>
                                    ? StrictSchemaMap<T> | ObjectSchema<T>
                                    : never

Type Parameters

  • T = any

Generated using TypeDoc