update typings

This commit is contained in:
Ryukemeister 2023-11-04 15:23:49 +05:30
parent 4bc4b43a92
commit 681d20c0dc
2 changed files with 8 additions and 6 deletions

View File

@ -1,6 +1,7 @@
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Switch } from "@/components/ui/switch";
import type { EventTypeGroup } from "EventTypeList/EventTypeList";
import { EventTypeDialog } from "EventTypeList/components/controls/Dialog";
import { EventTypeDropdown } from "EventTypeList/components/controls/Dropdown";
import { EventTypeTooltip } from "EventTypeList/components/controls/Tooltip";
@ -14,14 +15,15 @@ import { WEBAPP_URL } from "@calcom/lib/constants";
import { SchedulingType } from "@calcom/prisma/enums";
import { ArrowButton, AvatarGroup, ButtonGroup } from "@calcom/ui";
type EventType = EventTypeGroup["eventTypes"][number];
type EventTypeProps = {
event: any;
group: any;
type: any;
group: EventTypeGroup;
type: EventType;
readOnly: boolean;
index: number;
firstItem: { id: string };
lastItem: { id: string };
firstItem: EventType;
lastItem: EventType;
moveEventType: (index: number, increment: 1 | -1) => void;
onMutate: ({ hidden, id }: { hidden: boolean; id: string }) => void;
onCopy: (link: string) => void;

View File

@ -6,7 +6,7 @@ import type { RouterOutputs } from "@calcom/trpc";
type EventTypeGroups = RouterOutputs["viewer"]["eventTypes"]["getByViewer"]["eventTypeGroups"];
export type EventTypeGroup = EventTypeGroups[number];
export type EventType = EventTypeGroup["eventTypes"][number];
type EventType = EventTypeGroup["eventTypes"][number];
type EventTypeListProps = {
group: EventTypeGroup;