Skip to content

Commit debaa77

Browse files
committed
fix: type/linting errors
1 parent d1f640c commit debaa77

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/lib/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type { StaticImageData } from "next/image"
22

33
import type {
44
CrowdinContributor,
5-
Frontmatter,
65
FileContributor,
6+
Frontmatter,
77
Lang,
88
Layout,
99
ToCItem,

src/lib/utils/md.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,10 @@ export const getContentBySlug = (slug: string) => {
332332
const fileContents = fs.readFileSync(fullPath, "utf8")
333333
const { data, content } = matter(fileContents)
334334
const frontmatter = data as Frontmatter
335-
const items: Omit<MdPageContent, "tocItems" | "crowdinContributors"> = {
335+
const items: Omit<
336+
MdPageContent,
337+
"tocItems" | "crowdinContributors" | "contributors"
338+
> = {
336339
slug,
337340
content,
338341
frontmatter,

src/pages/[...slug].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export const getStaticProps = (async (context) => {
204204

205205
const ContentPage: NextPageWithLayout<
206206
InferGetStaticPropsType<typeof getStaticProps>
207-
> = ({ mdxSource, layout, gfissues, contributorHistory }) => {
207+
> = ({ mdxSource, layout, gfissues }) => {
208208
// TODO: Address component typing error here (flip `FC` types to prop object types)
209209
// @ts-expect-error
210210
const components: Record<string, React.ReactNode> = {

0 commit comments

Comments
 (0)