react-compinators
    Preparing search index...

    Type Alias WithRequiredProp<Prop, BaseProps>

    WithRequiredProp: Omit<BaseProps, Prop> & Record<
        Prop,
        Required<BaseProps[Prop]>,
    >

    The type of props where Prop is optional, after it has been converted into a required prop.

    Type Parameters

    • Prop extends string
    • BaseProps extends { [key in Prop]?: unknown }