1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-30 23:21:29 -04:00

start extracting types to shared .d.ts file

This commit is contained in:
2022-01-10 14:18:33 -05:00
parent b552b6ae64
commit 0ef7ff5f92
12 changed files with 45 additions and 30 deletions

17
types/index.d.ts vendored Normal file
View File

@ -0,0 +1,17 @@
export type NoteMetaType = {
title: string;
htmlTitle?: string;
date: string;
slug: string;
permalink: string;
description?: string;
image?: string;
tags?: string[];
readingMins?: number;
noComments?: boolean;
};
export type NoteType = {
frontMatter: NoteMetaType;
mdxSource: string;
};