From 42baf62e7ca0351a2f2c7d06ec58086f90519bb7 Mon Sep 17 00:00:00 2001 From: adenpun <35649969+aappaapp@users.noreply.github.com> Date: Mon, 12 Jun 2023 16:34:05 +0800 Subject: [PATCH] Fixed `AstroUserConfig`'s redirect type definition (#7366) --- .changeset/proud-vans-approve.md | 5 +++++ packages/astro/src/@types/astro.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/proud-vans-approve.md 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} * @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; /** * @docs