Files
DefectingCat.github.io/types/index.ts
Defectink 1179cc3c1f Add fetch post list
* add gray-matter
2022-03-22 17:03:35 +08:00

22 lines
429 B
TypeScript

import { NextPage } from 'next';
import { AppProps } from 'next/app';
import { ReactElement } from 'react';
export type NextPageWithLayout = {
getLayout(page: ReactElement): JSX.Element;
} & NextPage;
export type AppPropsWithLayout = AppProps & {
Component: NextPageWithLayout;
};
export interface MyMatters {
title: string;
date: string;
tags: string;
}
export interface Post extends MyMatters {
slug: string;
}