Hex Core JS
    Preparing search index...

    Type Alias RequiredOnlyKeys<T, K>

    RequiredOnlyKeys: Required<Pick<T, K>> & Partial<Omit<T, K>>

    Creates a new type using the same keys as the given, but makes the given specified keys (type param K) required and makes the rest optional.

    Type Parameters

    • T extends Record<any, any>
    • K extends keyof T