chore(core,composables): update jsdocs

This commit is contained in:
braks
2024-02-05 07:51:12 +01:00
committed by Braks
parent 6e162d5f02
commit 2ca5bd82a4
8 changed files with 36 additions and 23 deletions
@@ -87,6 +87,15 @@ type Injection = VueFlowStore | null | undefined
type Scope = (EffectScope & { vueFlowId: string }) | undefined
// todo: maybe replace the storage with a context based solution; This would break calling useVueFlow outside a setup function though, which should be fine
/**
* Composable that provides access to a store instance
*
* If no id is provided, the store instance is injected from context
*
* If no store instance is found in context, a new store instance is created and registered in storage
*
* @returns a vue flow store instance
*/
export function useVueFlow(options?: FlowProps): VueFlowStore {
const storage = Storage.getInstance()