diff options
author | 2023-06-12 16:34:05 +0800 | |
---|---|---|
committer | 2023-06-12 16:34:05 +0800 | |
commit | 42baf62e7ca0351a2f2c7d06ec58086f90519bb7 (patch) | |
tree | eeb023e56ff90a220572f3d7759508dae9d1446e | |
parent | 4f7091206c62f6546abdbdb895035b052cf383af (diff) | |
download | astro-42baf62e7ca0351a2f2c7d06ec58086f90519bb7.tar.gz astro-42baf62e7ca0351a2f2c7d06ec58086f90519bb7.tar.zst astro-42baf62e7ca0351a2f2c7d06ec58086f90519bb7.zip |
Fixed `AstroUserConfig`'s redirect type definition (#7366)
Diffstat (limited to '')
-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 |