fix backlinks type and imports
This commit is contained in:
parent
72289219eb
commit
58b03b3b96
@ -1,8 +1,8 @@
|
|||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import Layout from "../../components/Layout";
|
import Layout from "components/Layout";
|
||||||
import Util from "../../lib/utils"
|
import Util from "lib/utils"
|
||||||
import FolderTree from "../../components/FolderTree";
|
import FolderTree from "components/FolderTree";
|
||||||
import MDContent from "../../components/MDContent";
|
import MDContent, { type LinkType } from "components/MDContent";
|
||||||
import type { GetStaticProps } from "next/types";
|
import type { GetStaticProps } from "next/types";
|
||||||
import type { ParsedUrlQuery } from "querystring";
|
import type { ParsedUrlQuery } from "querystring";
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ interface HomeProps {
|
|||||||
content: string
|
content: string
|
||||||
tree: Record<string, unknown>
|
tree: Record<string, unknown>
|
||||||
flattenNodes: unknown[]
|
flattenNodes: unknown[]
|
||||||
backLinks: unknown[]
|
backLinks: LinkType[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function Home({ note, backLinks, fileNames: _, tree, flattenNodes }: HomeProps) {
|
export default function Home({ note, backLinks, fileNames: _, tree, flattenNodes }: HomeProps) {
|
||||||
|
Loading…
Reference in New Issue
Block a user