Skip to content

Commit

Permalink
fix: use ? instead of | undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
madkarmaa committed Oct 8, 2024
1 parent 7fd0876 commit a2f79ec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/data/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ export type SocialsData = { socials: Social[] };
export type AnnouncementsData = { announcements: Announcement[] };

type ApiAnnouncementCreate = {
archivedAt: string | undefined;
attachmentUrls: string[] | undefined;
author: string | undefined;
channel: string | undefined;
content: string | undefined;
level: number | undefined;
archivedAt?: string;
attachmentUrls?: string[];
author?: string;
channel?: string;
content?: string;
level?: number;
title: string;
};

Expand Down

0 comments on commit a2f79ec

Please sign in to comment.