mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
✨ Change fetch to oct
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { GistData } from 'lib/fetcher';
|
||||
import { NextPage } from 'next';
|
||||
import { AppProps } from 'next/app';
|
||||
import { ReactElement } from 'react';
|
||||
@ -21,34 +22,34 @@ export interface Post extends MyMatters {
|
||||
}
|
||||
|
||||
// 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 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;
|
||||
type: GistsFileType;
|
||||
language: GistsLanguage | null;
|
||||
raw_url: string;
|
||||
size: number;
|
||||
content: string;
|
||||
filename?: string | undefined;
|
||||
type?: string | undefined;
|
||||
language?: string | undefined;
|
||||
raw_url?: string | undefined;
|
||||
size?: number | undefined;
|
||||
content?: string | undefined;
|
||||
}
|
||||
|
||||
export enum GistsLanguage {
|
||||
@ -114,7 +115,7 @@ export enum GistsOwnerType {
|
||||
}
|
||||
|
||||
// Generated by https://quicktype.io
|
||||
export interface SignalGist extends Gist {
|
||||
export interface SignalGist extends GistData {
|
||||
forks: any[];
|
||||
history: History[];
|
||||
}
|
||||
|
Reference in New Issue
Block a user