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:
29
types/note.d.ts
vendored
29
types/note.d.ts
vendored
@@ -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;
|
||||
|
||||
2
types/repository.d.ts
vendored
2
types/repository.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
export type RepositoryType = {
|
||||
export type Repository = {
|
||||
name: string;
|
||||
url: string;
|
||||
description?: string;
|
||||
|
||||
Reference in New Issue
Block a user