Release RuneStone 0.1.7 with plugin documents and shared menus
This commit is contained in:
@@ -43,6 +43,10 @@ export function workspaceRead(rel: string): Promise<string> {
|
||||
return invoke("workspace_read", { rel });
|
||||
}
|
||||
|
||||
export async function workspaceReadBytes(rel: string): Promise<Uint8Array> {
|
||||
return new Uint8Array(await invoke<ArrayBuffer>("workspace_read_bytes", { rel }));
|
||||
}
|
||||
|
||||
export function workspaceWrite(rel: string, contents: string, expected?: string): Promise<void> {
|
||||
return invoke("workspace_write", { rel, contents, expected });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user