mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
22 lines
431 B
TypeScript
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;
|
|
}
|