Skip to content

Commit

Permalink
fix(website): fix ignore some Typescript checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorin committed Feb 25, 2024
1 parent 020878e commit dc1b5f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/generator/website/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ export class MdtoHtmlResource extends TransformedResource {
P.basename(this.absOutputPath, ".html"),
).replace(/\/index$/g, ""),
content: marked
.parse(contentAsMd, {})
.parse(contentAsMd)
// @ts-ignore

Check failure on line 162 in source/generator/website/resource.ts

View workflow job for this annotation

GitHub Actions / Build

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
.replace(/README\.md/g, "")
.replace(/\.md/g, ".html"),
summary: SideSummaryAsHtml.create(
Expand Down
1 change: 1 addition & 0 deletions source/generator/website/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export class SideSummaryAsHtml implements Summary {
- [<%= m.readme.label %>](<%= m.readme.href %>)<% } %>
<% } %>`,
)({ sitemap: this.sitemap })
// @ts-ignore

Check failure on line 48 in source/generator/website/summary.ts

View workflow job for this annotation

GitHub Actions / Build

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
return marked.parse(summaryAsMd, {})
}
}

0 comments on commit dc1b5f2

Please sign in to comment.