i don't know what i did here

This commit is contained in:
MapleLeaf
2021-12-29 15:39:26 -06:00
parent 2ff496c46b
commit 78607b7589
4 changed files with 7 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
import { readFile } from "node:fs/promises"
import type { JSONOutput } from "typedoc"
export type DocsJson = JSONOutput.Reflection
export async function loadDocs(): Promise<DocsJson> {
return JSON.parse(await readFile("app/docs.json", "utf8"))
}