Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const REDUCED_APPOINTMENT_POINTERLEAVE_EVENT_NAME = addNamespace(pointerEvents.l

interface ResizingRule {
handles: string;
minWidth: number | undefined;
minWidth: number;
minHeight: number;
step: number;
roundStepValue: boolean;
Expand Down Expand Up @@ -91,6 +91,11 @@ export class Appointment extends DOMComponent<Appointment, AppointmentProperties
this.invoke(funcName, ...args);
}

invoke<Subject extends SubscribeKey>(
funcName: Subject,
...args: Parameters<SubscribeMethods[Subject]>
): ReturnType<SubscribeMethods[Subject]>;

invoke<Subject extends SubscribeKey>(
funcName: Subject,
...args: Parameters<SubscribeMethods[Subject]>
Expand Down Expand Up @@ -149,7 +154,6 @@ export class Appointment extends DOMComponent<Appointment, AppointmentProperties
}

_getVerticalResizingRule(): ResizingRule {
// @ts-expect-error getCellHeight is undefined only without notifyScheduler
const height = Math.round(this.invoke('getCellHeight'));

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface AppointmentProperties extends DOMComponentProperties<Appointmen
startDate: Date;
cellWidth: number;
cellHeight: number;
resizableConfig: Record<string, unknown>;
resizableConfig: object;
groups: string[];
partIndex?: number;
partTotalCount: number;
Expand Down
Loading
Loading