# TransformContext

The second argument to transform.

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

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

The second argument to `transform`.

## Properties

### collection

```ts
collection: TName;
```

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

The name of the collection, eg `posts`.

***

### dev

```ts
dev: boolean;
```

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

Whether the Vite dev server is running, as opposed to a build.

```ts
transform: ({ metadata }, { dev, skip }) => (metadata.draft && !dev ? skip("draft") : {})
```

***

### skip

```ts
skip: (reason?: string) => Skipped;
```

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

Leaves this entry out of the collection. Return its result.

```ts
transform: ({ metadata }, { skip }) => (metadata.draft ? skip("draft") : {})
```
