From a1e5660c25cb20b79444b27adffeec24b65e1fd6 Mon Sep 17 00:00:00 2001 From: vic1707 <28602203+vic1707@users.noreply.github.com> Date: Fri, 17 Feb 2023 16:29:58 +0100 Subject: [PATCH] use @Princesseuh suggested change --- packages/integrations/sitemap/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/integrations/sitemap/src/index.ts b/packages/integrations/sitemap/src/index.ts index 44c834c6f981..4feee29587a4 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 const ChangeFreq = { ...EnumChangefreq } as const; +export type ChangeFreq = `${EnumChangefreq}`; export type SitemapItem = Pick< SitemapItemLoose, 'url' | 'lastmod' | 'changefreq' | 'priority' | 'links' @@ -32,7 +32,7 @@ export type SitemapOptions = entryLimit?: number; // sitemap specific - changefreq?: EnumChangefreq; + changefreq?: ChangeFreq; lastmod?: Date; priority?: number;