Skip to content

Commit

Permalink
refactor: change PagniationBuilder plugin interface
Browse files Browse the repository at this point in the history
  • Loading branch information
danpacho committed Mar 11, 2024
1 parent 84987d0 commit 33a9b76
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import {
interface PaginationBuilderOptions extends MetaGeneratorOptions {}

type FTreeNode = Parameters<
Awaited<ReturnType<BuilderPlugin['build:origin:tree']>>
Awaited<ReturnType<BuilderPlugin['walk:generated:tree']>>
>[0]

export const PaginationBuilder = (
option: PaginationBuilderOptions = {
...defaultMetaBuilderOptions,
}
): BuilderPlugin['build:origin:tree'] => {
): BuilderPlugin['walk:generated:tree'] => {
return async ({ metaEngine, logger }) => {
const metaExtractor = metaEngine(option.contentMeta)

Expand Down

0 comments on commit 33a9b76

Please sign in to comment.