0
Fork 0
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:
Alex Tim 2022-06-09 10:59:39 +03:00
parent 82ae70e2d3
commit 7bcebcf467

View file

@ -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,