yaschema
    Preparing search index...

    Function omit_noAutoOptional

    • Creates a version of the specified object schema with the same number or fewer keys, by omitting keys. Unlike with omit, 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<Omit<ObjectT, KeyT>>