*Add files api
This commit is contained in:
parent
17fa55f156
commit
789542e2a6
15
src/index.ts
15
src/index.ts
|
@ -47,6 +47,21 @@ export interface PluginAPI {
|
|||
set: (newRouter: express.Router) => void;
|
||||
reset: () => void;
|
||||
};
|
||||
files: {
|
||||
createIndependentFileSmall(
|
||||
seed: Uint8Array,
|
||||
userInode: string,
|
||||
fileData: Uint8Array
|
||||
): Promise<[IndependentFileSmall, Err]>;
|
||||
openIndependentFileSmall(
|
||||
seed: Uint8Array,
|
||||
userInode: string
|
||||
): Promise<[IndependentFileSmall, Err]>;
|
||||
overwriteIndependentFileSmall(
|
||||
file: IndependentFileSmall,
|
||||
newData: Uint8Array
|
||||
): Promise<Err>;
|
||||
};
|
||||
logger: Logger;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue