Partial overview

Added in v1.0.0


Table of contents


Combinators

Partial

Used to construct a struct schema with enumerated keys where any number of known keys are permitted.

Signature

export declare const Partial: <T extends Record<string, Schema<any, any>>>(
  props: T,
  extraProps?: 'strip' | 'error'
) => Schema<
  {
    [KeyType in keyof Partial<RequiredInputProps<T> & OptionalInputProps<T>>]: Partial<
      RequiredInputProps<T> & OptionalInputProps<T>
    >[KeyType]
  },
  { [KeyType in keyof PartialOutputProps<T>]: PartialOutputProps<T>[KeyType] }
>

Added in v1.0.0