Skip to content

Commit 3394b06

Browse files
committed
fix(teams): resolve import extensions and inline TeamMember type
Update imports to use .js extensions for ESM compatibility with the project's module resolution convention. Inline TeamMember type fields to avoid the intersection with PublicProfile which does not resolve cleanly without a built shared package.
1 parent c9c0b86 commit 3394b06

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

apps/backend/src/routes/team.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ import QRCode from 'qrcode';
44
import { generateUniqueSlug } from '../utils/slug.js';
55
import { createTeamScehma, inviteMembers, updateTeam } from '../validations/team.validation.js';
66

7-
import type { PlatformLink, PublicProfile } from '@devcard/shared';
7+
import type { PlatformLink } from '@devcard/shared';
88
import type { FastifyInstance, FastifyRequest, FastifyReply } from 'fastify';
99

10-
type TeamMember = PublicProfile & {
10+
type TeamMember = {
11+
username: string;
12+
displayName: string;
13+
bio: string | null;
14+
pronouns: string | null;
15+
role: string | null;
16+
company: string | null;
17+
avatarUrl: string | null;
18+
accentColor: string;
19+
links: PlatformLink[];
1120
teamRole: TeamRole;
1221
joinedAt: Date;
1322
}

0 commit comments

Comments
 (0)