1 | import { Entity, EntityResolver, PropertyDefinition } from '../../model';
|
2 | import { BelongsToDefinition } from '../relation.types';
|
3 | /**
|
4 | * Decorator for belongsTo
|
5 | * @param targetResolver - A resolver function that returns the target model for
|
6 | * a belongsTo relation
|
7 | * @param definition - Optional metadata for setting up a belongsTo relation
|
8 | * @param propertyDefinition - Optional metadata for setting up the property
|
9 | * @returns A property decorator
|
10 | */
|
11 | export declare function belongsTo<T extends Entity>(targetResolver: EntityResolver<T>, definition?: Partial<BelongsToDefinition>, propertyDefinition?: Partial<PropertyDefinition>): (decoratedTarget: Entity, decoratedKey: string) => void;
|