Libraries
    Preparing search index...

    Type Alias VariantResult<TEntity, K>

    The concrete result shape for a specific polymorphic variant.

    For a polymorphic entity that uses .withVariants(), resolves to the branch of the discriminated union where the discriminator equals K. Resolves to never for non-polymorphic entities or unknown keys.

    Type Parameters

    • TEntity extends Entity<any, any, any>
    • K extends string
    type AssignedActivity = VariantResult<typeof ActivityEntity, 'assigned'>;
    // → { type: 'assigned'; id: number; todoId: number; assigneeId: number; … }