Skip to content

Commit

Permalink
feat: export CreateSitemapItemsOption type
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyreilly committed May 4, 2024
1 parent caa81e5 commit bf5d885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/docusaurus-plugin-sitemap/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import fs from 'fs-extra';
import path from 'path';
import logger from '@docusaurus/logger';
import createSitemap from './createSitemap';
import type {PluginOptions, Options} from './options';
import type {PluginOptions, Options, CreateSitemapItemsOption} from './options';
import type {LoadContext, Plugin} from '@docusaurus/types';

export default function pluginSitemap(
Expand Down Expand Up @@ -47,4 +47,4 @@ export default function pluginSitemap(
}

export {validateOptions} from './options';
export type {PluginOptions, Options};
export type {PluginOptions, Options, CreateSitemapItemsOption};
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-sitemap/src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export type PluginOptions = {
createSitemapItems?: CreateSitemapItemsOption;
};

type CreateSitemapItemsOption = (
export type CreateSitemapItemsOption = (
params: CreateSitemapItemsParams & {
defaultCreateSitemapItems: CreateSitemapItemsFn;
},
Expand Down

0 comments on commit bf5d885

Please sign in to comment.