diff --git a/components/CalendarEvent.vue b/components/CalendarEvent.vue index b2628c264..bd2686ff0 100644 --- a/components/CalendarEvent.vue +++ b/components/CalendarEvent.vue @@ -15,7 +15,7 @@ const props = withDefaults(defineProps<{ year: () => newDate().getFullYear(), }); -const emit = defineEmits< { +const emit = defineEmits<{ add: [event: string]; delete: [event: string]; }>(); diff --git a/components/ContentWarning.vue b/components/ContentWarning.vue index f5a43f31d..ae1c1ac0d 100644 --- a/components/ContentWarning.vue +++ b/components/ContentWarning.vue @@ -4,7 +4,7 @@ defineProps<{ dismissed?: boolean; }>(); -const emit = defineEmits< { +const emit = defineEmits<{ dismiss: []; blur: []; }>(); diff --git a/components/IconSelector.vue b/components/IconSelector.vue index f683136a5..00de8b2ca 100644 --- a/components/IconSelector.vue +++ b/components/IconSelector.vue @@ -10,7 +10,7 @@ const props = withDefaults(defineProps<{ skipIcons: () => [], }); -const emit = defineEmits< { +const emit = defineEmits<{ change: [icon: string]; }>(); diff --git a/server/express/profile.ts b/server/express/profile.ts index d75a9a140..0fe84de4c 100644 --- a/server/express/profile.ts +++ b/server/express/profile.ts @@ -632,9 +632,9 @@ const cleanupOpinions = (opinions: OpinionFormValue[]) => { }; type SaveProfile = Omit -& Partial> -& Pick; + 'card' | 'cardDark' | 'circle' | 'markdown' | 'events' | 'customEvents' | 'lastUpdate' | 'id' | 'access'> + & Partial> + & Pick; const saveProfile = async (req: Request, locale: string, { opinions, names, pronouns, description, birthday, timezone, links, flags, customFlags, words, sensitive, @@ -1036,8 +1036,8 @@ interface ProfileExportData { } type ProfileExportProfile = Omit -& Pick; + 'card' | 'cardDark' | 'circle' | 'lastUpdate' | 'id' | 'access'> + & Pick; router.get('/profile/export', handleErrorAsync(async (req: Request, res: Response) => { if (!req.user || req.user.bannedReason) {