Files
DefectingCat.github.io/types/index.ts
DefectingCat 2b9db34c1b Add editorconfig
add prettier
add prettier ignore
2022-08-25 18:19:25 +08:00

59 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[];
}