mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
58 lines
1.3 KiB
TypeScript
58 lines
1.3 KiB
TypeScript
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;
|
|
tags: string[];
|
|
}
|
|
|
|
export interface Post extends MyMatters {
|
|
slug: string;
|
|
}
|
|
|
|
// Generated by https://quicktype.io
|
|
// export interface Gist {
|
|
// url: string;
|
|
// forks_url: string;
|
|
// commits_url: string;
|
|
// id: string;
|
|
// node_id: string;
|
|
// git_pull_url: string;
|
|
// git_push_url: string;
|
|
// html_url: string;
|
|
// files: { [key: string]: GistsFile };
|
|
// public: boolean;
|
|
// created_at: string;
|
|
// updated_at: string;
|
|
// description: string;
|
|
// comments: number;
|
|
// user: null;
|
|
// comments_url: string;
|
|
// owner: GistsOwner;
|
|
// truncated: boolean;
|
|
// }
|
|
|
|
export interface GistsFile {
|
|
filename?: string | undefined;
|
|
type?: string | undefined;
|
|
language?: string | undefined;
|
|
raw_url?: string | undefined;
|
|
size?: number | undefined;
|
|
content?: string | undefined;
|
|
}
|
|
|
|
export interface SignalGist extends GistData {
|
|
forks: any[];
|
|
history: History[];
|
|
} |