# TransformResult

What transform returns: a new metadata and/or body. Whatever it leaves out stays as it was.

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

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

What `transform` returns: a new `metadata` and/or `body`. Whatever it leaves out stays as it was.

## Properties

### body?

```ts
body?: unknown;
```

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

Replaces the document's body, eg with rendered HTML.

***

### metadata?

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

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

Replaces the document's metadata, eg to add derived fields.
