mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-30 05:34:21 +03:00
docs: comment for ipc
This commit is contained in:
parent
e6abaf7aa4
commit
2a7e1839da
@ -5,6 +5,7 @@ use yrs::StateVector;
|
||||
use crate::state::AppState;
|
||||
|
||||
#[tauri::command]
|
||||
/// get yDoc created by create_workspace, using same id
|
||||
pub async fn get_doc<'s>(
|
||||
state: tauri::State<'s, AppState>,
|
||||
parameters: GetDocumentParameter,
|
||||
|
@ -5,6 +5,7 @@ use lib0::any::Any;
|
||||
use crate::state::AppState;
|
||||
|
||||
#[tauri::command]
|
||||
/// create yDoc for a workspace
|
||||
pub async fn create_workspace<'s>(
|
||||
state: tauri::State<'s, AppState>,
|
||||
parameters: CreateWorkspace,
|
||||
|
Loading…
Reference in New Issue
Block a user