feat: 单独抽出 api.d.ts
This commit is contained in:
parent
811519bfd8
commit
b7f633598f
2 changed files with 61 additions and 50 deletions
45
src/types/api.d.ts
vendored
Normal file
45
src/types/api.d.ts
vendored
Normal 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;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue