mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-28 15:52:10 +03:00
c2b1a9b118
Co-authored-by: Himself65 <himself65@outlook.com>
21 lines
568 B
TypeScript
21 lines
568 B
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
|
|
/* auto-generated by NAPI-RS */
|
|
|
|
export class Storage {
|
|
constructor(path: string);
|
|
error(): string | null;
|
|
getBlob(workspaceId: string | undefined | null, id: string): Promise<Buffer>;
|
|
connect(workspaceId: string, remote: string): Workspace | null;
|
|
sync(workspaceId: string, remote: string): Workspace;
|
|
}
|
|
export class Workspace {
|
|
constructor(id: string);
|
|
id(): string;
|
|
clientId(): number;
|
|
search(query: string): string;
|
|
getSearchIndex(): Array<string>;
|
|
setSearchIndex(fields: Array<string>): boolean;
|
|
}
|