update nextjs to 13.4.7

This commit is contained in:
DefectingCat
2023-06-25 15:38:25 +08:00
parent f0262210d0
commit 88bdb7fd56
6 changed files with 496 additions and 484 deletions

View File

@ -1,16 +1,3 @@
import { GistData } from 'lib/fetcher';
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;
@ -56,3 +43,20 @@ export interface SignalGist extends GistData {
forks: any[];
history: History[];
}
export type GistData = {
id: string;
files: { [key: string]: GistsFile | undefined };
login: string;
updated_at: string;
description: string | null;
};
export type GetGists = {
/**
* { prev: null, next: '2', last: '5', first: null }
*/
pageSize: PageSize;
gists: GistData[];
};
export type PageSize = { [key in PageKeys]: string | null };
export type PageKeys = 'prev' | 'next' | 'last' | 'first';