Export ChangeFreqEnum type for sitemap integration (#7028)
This commit is contained in:
parent
59d8c50b84
commit
6ca3b5a9e8
2 changed files with 6 additions and 0 deletions
5
.changeset/clever-garlics-doubt.md
Normal file
5
.changeset/clever-garlics-doubt.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/sitemap': patch
|
||||
---
|
||||
|
||||
exported enum type to support typescript > 5.0
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue