# Config

A tomekit config, as returned by defineConfig.

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

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

A tomekit config, as returned by `defineConfig`.

## Properties

### collections

```ts
collections: TCollections;
```

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

Keyed by collection name, which is also the name each collection is imported by, eg `import { posts } from "tomekit/content"`.

***

### references?

```ts
references?: TReferences;
```

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

Metadata fields that hold slugs of another collection, keyed by collection name and then by key path. A slug that no document has fails the build, and the field is typed as that collection's slugs.

```ts
references: {
  posts: { author: "authors", "sections.author": "authors" },
}
// authors.get(post.metadata.author).metadata.name
```
