Hex Core JS
    Preparing search index...

    Type Alias RequiredAtLeastOne<T, Key>

    RequiredAtLeastOne: Omit<T, Key> & {
        [K in Key]-?: RequiredOnlyKeys<Pick<T, Key>, K>
    }[Key]

    Constructs a new type from T where at least one of the specified keys (Key) is required.

    Type Parameters

    • T
    • Key extends keyof T = keyof T