@dxos/echo
    Preparing search index...

    Type Alias MakeRelation<Self, SourceInstance, TargetInstance>

    MakeRelation: <
        const Input extends Schema.Top
        | Schema.Struct.Fields,
        _Schema extends Schema.Top = ToSchema<Input>,
    >(
        input: Input,
        annotate?: (schema: ToSchema<Input>) => _Schema,
    ) => RelationClass<
        Self,
        Schema.Schema.Type<_Schema>,
        SourceInstance & OfKind<typeof EntityModule.Kind.Object>,
        TargetInstance & OfKind<typeof EntityModule.Kind.Object>,
        {},
    >

    Last stage of makeRelation: takes a schema, or struct fields plus an optional annotation pipe.

    Type Parameters

    • Self
    • SourceInstance
    • TargetInstance

    Type declaration