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: string): string;
filter?(page: string): boolean;
/**
* If you have any URL, not rendered by Astro, that you want to include in your sitemap,