1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-02 16:14:03 -05:00

add getStaticProps types

This commit is contained in:
2022-06-30 20:56:34 -04:00
parent 5f22b7989d
commit 887c24d317
17 changed files with 67 additions and 50 deletions

6
types/note.d.ts vendored
View File

@@ -17,5 +17,9 @@ export type NoteWithSource = {
frontMatter: NoteFrontMatter;
// the final, compiled JSX by next-mdx-remote; see lib/helpers/parse-notes.ts
source: MDXRemoteSerializeResult;
source: MDXRemoteSerializeResult<Record<string, never>>;
};
export type NotesByYear = {
[year: string]: NoteFrontMatter[];
};