# SlugOf

A slug in the named collection, or in any collection. The generated types narrow it to the slugs that exist.

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

```ts
type SlugOf<TName extends CollectionName = CollectionName> = TName extends unknown ? string : never;
```

Defined in: [content.ts:26](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/content.ts#L26)

A slug in the named collection, or in any collection. The generated types narrow it to the slugs that exist.

## Example

```ts
const slug: SlugOf<"posts"> = "hello-world";
```
