Utility TypeScript @ 2.0.0-beta
    Preparing search index...

    Type Alias PartialExcept<T_Object, T_KeysRequired>

    PartialExcept: Partial<Omit<T_Object, T_KeysRequired>> & Pick<
        Required<T_Object>,
        T_KeysRequired,
    >

    Partial-izes an object, except for the given RequiredKeys, which are converted to be required.

    For the recursive version, see RecursivePartialExcept.

    Type Parameters

    • T_Object

      Type or interface to transform.

    • T_KeysRequired extends keyof T_Object = never

      Optional. Keys that must be included. Default never.

    2.0.0-alpha