Left Curve Software Stack
    Preparing search index...

    Type Alias Require<T, K>

    Require: T & { [P in K]-?: T[P] }

    Type Parameters

    • T
    • K extends keyof T

    Creates a type that is T with the required keys K.

    Require<{ a?: string, b: number }, 'a'>
    => { a: string, b: number }