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

clean up note types

This commit is contained in:
2022-04-30 18:01:33 -04:00
parent a2921d106e
commit d718555001
10 changed files with 49 additions and 39 deletions

29
types/note.d.ts vendored
View File

@@ -1,18 +1,21 @@
import type { MDXRemoteSerializeResult } from "next-mdx-remote";
export type NoteType = {
frontMatter: {
slug: string;
permalink: string;
date: string;
title: string;
htmlTitle?: string;
description?: string;
image?: string;
tags?: string[];
readingMins?: number;
noComments?: boolean;
};
export type NoteFrontMatter = {
slug: string;
permalink: string;
date: string;
title: string;
htmlTitle?: string;
description?: string;
image?: string;
tags?: string[];
readingMins?: number;
noComments?: boolean;
};
export type Note = {
// yaml metadata
frontMatter: NoteFrontMatter;
// the final, compiled JSX by next-mdx-remote; see lib/helpers/parse-notes.ts
source: MDXRemoteSerializeResult;

View File

@@ -1,4 +1,4 @@
export type RepositoryType = {
export type Repository = {
name: string;
url: string;
description?: string;