---
title: "GenerateIdOptions"
description: "Options handed to a `loaders.glob` `generateId` function."
url: "https://pitlane.tools/package/content/interface/GenerateIdOptions"
---

# GenerateIdOptions

```ts
import type { GenerateIdOptions } from "@pitlane/content";
```

Options handed to a `loaders.glob` `generateId` function.

## Properties

### base

```ts
base: string;
```

The directory the pattern resolved against.

---

### data

```ts
data: Record<string, unknown>;
```

The parsed data of the entry, for an id derived from frontmatter.

---

### entry

```ts
entry: string;
```

The matched path, relative to `base`.
