Libraries
    Preparing search index...

    Type Alias WithJoinedOne<TBase, TFieldName, TForeignSchema, TRequired>

    WithJoinedOne: TBase & {
        [K in TFieldName]: TRequired extends true
            ? InferType<TForeignSchema>
            : InferType<TForeignSchema> | null
    }

    Adds a single joined object field to TBase

    Type Parameters

    • TBase
    • TFieldName extends string
    • TForeignSchema extends ObjectSchemaBuilder<any, any, any, any, any, any, any>
    • TRequired extends boolean