es-stl - v3.0.3
    Preparing search index...

    Type Alias RequiredKeys<T, Keys>

    RequiredKeys: Omit<T, Keys> & Required<Pick<T, Keys>>

    Object type with selected properties made required.

    Type Parameters

    • T

      Source object type.

    • Keys extends keyof T

      Properties made required.

    type Options = RequiredKeys<{ host?: string; port: number }, 'host'>;
    const options: Options = { host: 'localhost', port: 8080 };