Export ChangeFreqEnum type for sitemap integration (#7028)

This commit is contained in:
Alexander Niebuhr 2023-05-25 11:15:26 +02:00 committed by GitHub
parent 59d8c50b84
commit 6ca3b5a9e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/sitemap': patch
---
exported enum type to support typescript > 5.0

View file

@ -12,6 +12,7 @@ import { generateSitemap } from './generate-sitemap.js';
import { Logger } from './utils/logger.js';
import { validateOptions } from './validate-options.js';
export { EnumChangefreq as ChangeFreqEnum } from 'sitemap';
export type ChangeFreq = `${EnumChangefreq}`;
export type SitemapItem = Pick<
SitemapItemLoose,