Skip to content

Commit

Permalink
Export ChangeFreqEnum type for sitemap integration (#7028)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderniebuhr committed May 25, 2023
1 parent 59d8c50 commit 6ca3b5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-garlics-doubt.md
@@ -0,0 +1,5 @@
---
'@astrojs/sitemap': patch
---

exported enum type to support typescript > 5.0
1 change: 1 addition & 0 deletions packages/integrations/sitemap/src/index.ts
Expand Up @@ -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,
Expand Down

0 comments on commit 6ca3b5a

Please sign in to comment.