Skip to content

Commit

Permalink
powrót do definicji typu Notification z użyciem funkcji infer
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawe16 committed Nov 12, 2024
1 parent 67d47e2 commit b456bea
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions zapisy/apps/notifications/assets/components/Widget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ const notificationScheme = z
const notificationSchemeArray = z.array(notificationScheme);
type Notification = {
id: string;
description: string;
issuedOn: string;
target: string;
};
type Notification = z.infer<typeof notificationScheme>;
dayjs.extend(relativeTime);
dayjs.extend(utc);
Expand Down

0 comments on commit b456bea

Please sign in to comment.