Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit c6d3971

Browse files
himself65billyyyyy3320
authored andcommitted
fix: remove unused '@ts-ignore' (#45)
1 parent c6a0383 commit c6d3971

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/node/pagination.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ function getIntervallers(max, interval) {
1818
? Math.floor(max / interval)
1919
: Math.floor(max / interval) + 1;
2020
const arr = [...new Array(count)];
21-
// @ts-ignore
2221
return arr.map((v, index) => {
2322
const start = index * interval;
2423
const end = (index + 1) * interval - 1;
@@ -101,7 +100,6 @@ export async function registerPaginations(
101100

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

104-
// @ts-ignore
105103
ctx.serializedPaginations.push(pagination);
106104
}
107105
}

src/node/util.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ export function logPages(title, pages) {
3939
console.log(chalk.cyan(`[@vuepress/plugin-blog] ====== ${title} ======`));
4040
const data: any[] = [['permalink', 'meta', 'pid', 'id', 'frontmatter']];
4141
data.push(
42-
...pages.map(({ // @ts-ignore
43-
path, permalink, meta, pid, id, frontmatter }) => [
44-
// @ts-ignore // @ts-ignore
42+
...pages.map(({ path, permalink, meta, pid, id, frontmatter }) => [
4543
permalink || path || '',
4644
JSON.stringify(meta) || '',
4745
pid || '',
@@ -95,7 +93,6 @@ export function resolvePaginationConfig(
9593

9694
function getFrontmatterClassifierPageFilter(keys) {
9795
return new Function(
98-
// @ts-ignore
9996
'page',
10097
'id',
10198
'pid',

0 commit comments

Comments
 (0)