@pleisto/active-support
    Preparing search index...

    Type Alias WithRequired<T, K>

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

    This is a type that removes the optional mark from the properties in the K union. This means that they will be required.

    Type Parameters

    • T
    • K extends keyof T
    type Foo = {
    bar?: string
    baz?: number
    }
    type FooRequired = WithRequired<Foo, 'bar' | 'baz'>
    // type FooRequired = {
    // bar: string
    // baz: number
    // }