mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -05:00
refactor: 'filter' option should return boolean instead of string
This commit is contained in:
parent
82ae70e2d3
commit
7bcebcf467
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ type SitemapOptions =
|
||||||
* filter: (page) => page !== 'http://example.com/secret-page'
|
* filter: (page) => page !== 'http://example.com/secret-page'
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
filter?(page: string): string;
|
filter?(page: string): boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If you have any URL, not rendered by Astro, that you want to include in your sitemap,
|
* If you have any URL, not rendered by Astro, that you want to include in your sitemap,
|
||||||
|
|
Loading…
Add table
Reference in a new issue