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: string): string;
|
||||
filter?(page: string): boolean;
|
||||
|
||||
/**
|
||||
* 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