Skip to content

Commit

Permalink
Fixed AstroUserConfig's redirect type definition (#7366)
Browse files Browse the repository at this point in the history
  • Loading branch information
aappaapp committed Jun 12, 2023
1 parent 4f70912 commit 42baf62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-vans-approve.md
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixed `RedirectConfig` type definition
4 changes: 2 additions & 2 deletions packages/astro/src/@types/astro.ts
Expand Up @@ -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
Expand Down Expand Up @@ -495,7 +495,7 @@ export interface AstroUserConfig {
* }
* ```
*/
redirects?: RedirectConfig;
redirects?: Record<string, RedirectConfig>;

/**
* @docs
Expand Down

0 comments on commit 42baf62

Please sign in to comment.