Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/node/pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function getIntervallers(max, interval) {
? Math.floor(max / interval)
: Math.floor(max / interval) + 1;
const arr = [...new Array(count)];
// @ts-ignore
return arr.map((v, index) => {
const start = index * interval;
const end = (index + 1) * interval - 1;
Expand Down Expand Up @@ -101,7 +100,6 @@ export async function registerPaginations(

await Promise.all(extraPages.map(page => ctx.addPage(page)));

// @ts-ignore
ctx.serializedPaginations.push(pagination);
}
}
5 changes: 1 addition & 4 deletions src/node/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ export function logPages(title, pages) {
console.log(chalk.cyan(`[@vuepress/plugin-blog] ====== ${title} ======`));
const data: any[] = [['permalink', 'meta', 'pid', 'id', 'frontmatter']];
data.push(
...pages.map(({ // @ts-ignore
path, permalink, meta, pid, id, frontmatter }) => [
// @ts-ignore // @ts-ignore
...pages.map(({ path, permalink, meta, pid, id, frontmatter }) => [
permalink || path || '',
JSON.stringify(meta) || '',
pid || '',
Expand Down Expand Up @@ -95,7 +93,6 @@ export function resolvePaginationConfig(

function getFrontmatterClassifierPageFilter(keys) {
return new Function(
// @ts-ignore
'page',
'id',
'pid',
Expand Down