2025-05-16 20:06:09 +03:00

16 lines
309 B
TypeScript

type CustomerProfile = {
telegramId: number;
};
export class BaseService {
protected customer: CustomerProfile;
constructor(customer: CustomerProfile) {
if (!customer?.telegramId) {
throw new Error('Invalid customer profile: telegramId required');
}
this.customer = customer;
}
}