Files
DefectingCat.github.io/types/index.ts
Defectink 5b55b84818 Add post card in blog page
* add component and page tests
2022-03-23 11:48:00 +08:00

22 lines
431 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;
}