---
title: typedRoutes (experimental)
description: Enable experimental support for statically typed links.
url: "https://nextjs.org/docs/14/app/api-reference/next-config-js/typedRoutes"
version: 14.2.35
lastUpdated: 2023-06-08
prerequisites:
  - "API Reference: /docs/14/app/api-reference"
  - "next.config.js Options: /docs/14/app/api-reference/next-config-js"
---


Experimental support for [statically typed links](/docs/app/building-your-application/configuring/typescript#statically-typed-links). This feature requires using the App Router as well as TypeScript in your project.

```js filename="next.config.js"
/** @type {import('next').NextConfig} */
const nextConfig = {
  experimental: {
    typedRoutes: true,
  },
}

module.exports = nextConfig
```
---

For an index of all available documentation, see [/docs/14/llms.txt](/docs/14/llms.txt)