0
Fork 0
mirror of https://github.com/TanStack/time.git synced 2026-11-16 19:09:47 +00:00
time/docs/reference/interfaces/DurationApi.md
2026-08-22 23:22:16 +00:00

1.2 KiB

id title
DurationApi DurationApi

Interface: DurationApi<TResource, TEvent>

Defined in: calendar/features/duration.ts:9

Type Parameters

TResource

TResource extends Resource

TEvent

TEvent extends Event<TResource>

Properties

checkEventDuration()

checkEventDuration: (event, newStart?, newEnd?, newResources?) => DurationConflict[];

Defined in: calendar/features/duration.ts:11

Parameters

event

TEvent

newStart?

string

newEnd?

string

newResources?

(string | TResource)[]

Returns

DurationConflict[]


getWorkingDuration()

getWorkingDuration: (event, newStart?, newEnd?) => number;

Defined in: calendar/features/duration.ts:10

Parameters

event

TEvent

newStart?

string

newEnd?

string

Returns

number