# Entry

One document as a loader returns it, before the schema and transform.

> Every page: https://tomekit.aayush.cv/llms.txt

Defined in: [index.ts:79](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/index.ts#L79)

One document as a loader returns it, before the schema and `transform`.

## Example

```ts
const hello: Entry = { body: "# Hello", metadata: { title: "Hello" }, slug: "hello" };
```

## Properties

### body?

```ts
body?: string;
```

Defined in: [index.ts:85](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/index.ts#L85)

Becomes the document's `body`, eg a file's text after the frontmatter.

Default: `""`

***

### file?

```ts
file?: TFile;
```

Defined in: [index.ts:87](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/index.ts#L87)

Where the entry's file lives, when it has one.

***

### metadata?

```ts
metadata?: object;
```

Defined in: [index.ts:93](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/index.ts#L93)

Validated by the collection's schema next.

Default: `{}`

***

### slug

```ts
slug: string;
```

Defined in: [index.ts:95](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/index.ts#L95)

The document's key in its collection, eg `guides/setup`. A non-empty string, unique in the collection.
