Skip to content

Commit

Permalink
Enable autocomplete for pathnames
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Aug 28, 2024
1 parent d8fdcc6 commit 79f40c1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/next-intl/src/routing/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ export type RoutingConfig<
} & ([AppPathnames] extends [never]
? // https://discord.com/channels/997886693233393714/1278008400533520434
// eslint-disable-next-line @typescript-eslint/ban-types
{}
{
/**
* A map of localized pathnames per locale.
* @see https://next-intl-docs.vercel.app/docs/routing#pathnames
**/
pathnames?: undefined;
}
: {
/**
* A map of localized pathnames per locale.
Expand Down

0 comments on commit 79f40c1

Please sign in to comment.