From e41ef8f0402fb89d1c1efc78a8fdcbf0cdb80a8c Mon Sep 17 00:00:00 2001 From: Alexander Niebuhr Date: Sun, 7 May 2023 20:02:08 +0000 Subject: [PATCH 1/2] fix: types --- .changeset/clever-garlics-doubt.md | 5 +++++ packages/integrations/sitemap/src/index.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/clever-garlics-doubt.md diff --git a/.changeset/clever-garlics-doubt.md b/.changeset/clever-garlics-doubt.md new file mode 100644 index 000000000000..a09ca541eafc --- /dev/null +++ b/.changeset/clever-garlics-doubt.md @@ -0,0 +1,5 @@ +--- +'@astrojs/sitemap': patch +--- + +exported enum type to support typescript > 5.0 diff --git a/packages/integrations/sitemap/src/index.ts b/packages/integrations/sitemap/src/index.ts index 0814ae0e1a3d..9e3aabd2ffd5 100644 --- a/packages/integrations/sitemap/src/index.ts +++ b/packages/integrations/sitemap/src/index.ts @@ -12,6 +12,7 @@ import { generateSitemap } from './generate-sitemap.js'; import { Logger } from './utils/logger.js'; import { validateOptions } from './validate-options.js'; +export { EnumChangefreq } from 'sitemap'; export type ChangeFreq = `${EnumChangefreq}`; export type SitemapItem = Pick< SitemapItemLoose, From 63ae4f0149dfefd89bcef426fad3a901162e5621 Mon Sep 17 00:00:00 2001 From: Alexander Niebuhr Date: Thu, 25 May 2023 10:49:56 +0200 Subject: [PATCH 2/2] Update index.ts --- packages/integrations/sitemap/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/integrations/sitemap/src/index.ts b/packages/integrations/sitemap/src/index.ts index 0f2e4f4f1dab..46ff694fd619 100644 --- a/packages/integrations/sitemap/src/index.ts +++ b/packages/integrations/sitemap/src/index.ts @@ -12,7 +12,7 @@ import { generateSitemap } from './generate-sitemap.js'; import { Logger } from './utils/logger.js'; import { validateOptions } from './validate-options.js'; -export { EnumChangefreq } from 'sitemap'; +export { EnumChangefreq as ChangeFreqEnum } from 'sitemap'; export type ChangeFreq = `${EnumChangefreq}`; export type SitemapItem = Pick< SitemapItemLoose,