Implement editor.uploadFile syscall (#570)

* Implement editor.attachFile syscall

* Refactor attachFile to uploadFile

returns a promise with an UploadFile now

* Fix style

* Reject promise with errors

* Another code style fix

---------

Co-authored-by: prcrst <p-github@prcr.st>
This commit is contained in:
prcrst
2023-11-22 15:33:25 +01:00
committed by GitHub
co-authored by prcrst
parent 9b89330ec9
commit ae1561ac90
3 changed files with 51 additions and 0 deletions
+5
View File
@@ -140,3 +140,8 @@ export type LintDiagnostic = {
severity: "error" | "warning" | "info" | "hint";
message: string;
};
export type UploadFile = {
name: string;
content: Uint8Array;
}