UNPKG

281 BTypeScriptView Raw
1import { Entity, EntityResolver } from '../../model';
2import { HasOneDefinition } from '../relation.types';
3export declare function hasOne<T extends Entity>(targetResolver: EntityResolver<T>, definition?: Partial<HasOneDefinition>): (decoratedTarget: object, key: string) => void;