import { HasId } from './types'; import { UserData } from './user'; import { PersonData } from './person'; type CreditRelation = { user?: UserData; person?: PersonData; }; export type CreditData = HasId & { id?: number; amount?: number; currency?: string; type?: string; description?: string; personId?: number; userId?: number; } & CreditRelation;