import { OneOf , Relation , RelationAttributes , RelationKind } from './Relation' ; export function oneOf < ModelName extends string > ( to , attributes ? ) { return new Relation ( { to , kind : RelationKind . OneOf , attributes } ) ; }