mirror of
https://github.com/withastro/astro.git
synced 2025-03-24 23:21:57 -05:00
fix(types): update Astro.redirect JSDoc comment (#11546)
* fix(types): update Astro.redirect JSDoc comment * add changeset
This commit is contained in:
parent
d94247528d
commit
7f26de906e
2 changed files with 7 additions and 2 deletions
5
.changeset/mighty-mirrors-try.md
Normal file
5
.changeset/mighty-mirrors-try.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Remove "SSR Only" mention in `Astro.redirect` inline documentation and update reference link.
|
|
@ -262,7 +262,7 @@ export interface AstroGlobal<
|
|||
* ```
|
||||
*/
|
||||
getActionResult: AstroSharedContext['getActionResult'];
|
||||
/** Redirect to another page (**SSR Only**)
|
||||
/** Redirect to another page
|
||||
*
|
||||
* Example usage:
|
||||
* ```typescript
|
||||
|
@ -271,7 +271,7 @@ export interface AstroGlobal<
|
|||
* }
|
||||
* ```
|
||||
*
|
||||
* [Astro reference](https://docs.astro.build/en/guides/server-side-rendering/)
|
||||
* [Astro reference](https://docs.astro.build/en/reference/api-reference/#astroredirect)
|
||||
*/
|
||||
redirect: AstroSharedContext['redirect'];
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue