> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Leaves

```csharp
public static class Leaves
```

## Methods

### Covering()

```csharp
public static WorkerLeave? Covering(IEnumerable<(LeaveType Type, LocalDate First, LocalDate Last)> timeOff, LocalDate today)
```

The time off covering today, joined with what follows without a gap.

#### Parameters

**timeOff** `IEnumerable\<ValueTuple\<LeaveType,LocalDate,LocalDate\>\>` *required*

**Type:** `IEnumerable<ValueTuple<LeaveType,LocalDate,LocalDate>>`

**today** `LocalDate` *required*

#### Returns

`WorkerLeave`

### OnLeave()

```csharp
public static SourceWorker OnLeave(SourceWorker worker, WorkerLeave? leave, LocalDate today)
```

#### Parameters

**worker** `SourceWorker` *required*

**leave** `WorkerLeave` *required*

**today** `LocalDate` *required*

#### Returns

`SourceWorker`

### TypeNamed()

```csharp
public static LeaveType TypeNamed(string? name, LeaveType otherwise)
```

#### Parameters

**name** `string` *required*

**otherwise** `LeaveType` *required*

#### Returns

`LeaveType`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.