diff options
-rw-r--r-- | .changeset/proud-vans-approve.md | 5 | ||||
-rw-r--r-- | packages/astro/src/@types/astro.ts | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/.changeset/proud-vans-approve.md b/.changeset/proud-vans-approve.md new file mode 100644 index 000000000..c58b52799 --- /dev/null +++ b/.changeset/proud-vans-approve.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fixed `RedirectConfig` type definition diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 954bb4fa0..59594446c 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -455,7 +455,7 @@ export interface AstroUserConfig { /** * @docs * @name redirects (Experimental) - * @type {RedirectConfig} + * @type {Record<string, RedirectConfig>} * @default `{}` * @version 2.6.0 * @description Specify a mapping of redirects where the key is the route to match @@ -495,7 +495,7 @@ export interface AstroUserConfig { * } * ``` */ - redirects?: RedirectConfig; + redirects?: Record<string, RedirectConfig>; /** * @docs |