diff options
| author | realtradam <[email protected]> | 2024-06-19 21:29:02 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-06-19 21:29:02 -0400 |
| commit | 2944a5609d478c7a409579b4fcc5bf5c841037c9 (patch) | |
| tree | eaf96d01ea8774f3edfad63547f524f90c279757 | |
| parent | a3ac66012bf7e5099e80c6e224cc5069c9f44142 (diff) | |
| download | malcz.com-2944a5609d478c7a409579b4fcc5bf5c841037c9.tar.gz malcz.com-2944a5609d478c7a409579b4fcc5bf5c841037c9.zip | |
fix typing issues
| -rw-r--r-- | src/components/Apps.tsx | 2 | ||||
| -rw-r--r-- | src/components/Home.tsx | 1 | ||||
| -rw-r--r-- | src/vite.d.ts | 20 |
3 files changed, 21 insertions, 2 deletions
diff --git a/src/components/Apps.tsx b/src/components/Apps.tsx index e4dea26..7ecb58a 100644 --- a/src/components/Apps.tsx +++ b/src/components/Apps.tsx @@ -1,4 +1,4 @@ -import { useState, useEffect } from "react"; +//import { useState, useEffect } from "react"; //import { Link } from "react-router-dom"; //import GameCard from "./GameCard"; //import Button from "./Button"; diff --git a/src/components/Home.tsx b/src/components/Home.tsx index 83992f2..406700e 100644 --- a/src/components/Home.tsx +++ b/src/components/Home.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import { ReactComponent as HomeMD } from '../md/main.md'; export default function Home () { diff --git a/src/vite.d.ts b/src/vite.d.ts new file mode 100644 index 0000000..f522c76 --- /dev/null +++ b/src/vite.d.ts @@ -0,0 +1,20 @@ +declare module '*.md' { + // "unknown" would be more detailed depends on how you structure frontmatter + const attributes: Record<string, unknown>; + + // When "Mode.TOC" is requested + const toc: { level: string, content: string }[]; + + // When "Mode.HTML" is requested + const html: string; + + // When "Mode.RAW" is requested + const raw: string; + + // When "Mode.React" is requested. VFC could take a generic like React.VFC<{ MyComponent: TypeOfMyComponent }> + import React from 'react'; + const ReactComponent: React.VFC; + + // Modify below per your usage + export { attributes, toc, html, ReactComponent}; +} |
