yaschema
    Preparing search index...

    Function pick_noAutoOptional

    • Creates a version of the specified object schema with the same number or fewer keys, by picking keys. Unlike with pick, the keys of values that may be undefined are not automatically treated as optional. You may explicitly provide type parameters when using …_noAutoOptional methods, and those may include optional keys.

      Type Parameters

      • ObjectT extends Record<string, any>
      • KeyT extends string | number | symbol

      Parameters

      Returns ObjectSchema_noAutoOptional<Pick<ObjectT, KeyT>>