feat: 单独抽出 api.d.ts

This commit is contained in:
frostime 2023-08-15 10:52:47 +08:00
parent 811519bfd8
commit b7f633598f
2 changed files with 61 additions and 50 deletions

45
src/types/api.d.ts vendored Normal file
View file

@ -0,0 +1,45 @@
interface IReslsNotebooks {
notebooks: Notebook[];
}
interface IResUpload {
errFiles: string[];
succMap: { [key: string]: string };
}
interface IResdoOperations {
doOperations: doOperation[];
undoOperations: doOperation[] | null;
}
interface IResGetBlockKramdown {
id: BlockId;
kramdown: string;
}
interface IResGetChildBlock {
id: BlockId;
type: BlockType;
subtype?: BlockSubType;
}
interface IResGetTemplates {
content: string;
path: string;
}
interface IResReadDir {
isDir: boolean;
name: string;
}
interface IResExportMdContent {
hPath: string;
content: string;
}
interface IResBootProgress {
progress: number;
details: string;
}