File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ type Scope = (EffectScope & { vueFlowId: string }) | undefined
18
18
* If no store instance is found in context, a new store instance is created and registered in storage
19
19
*
20
20
* @public
21
+ * @param options - optional options to initialize the store instance
21
22
* @returns a vue flow store instance
22
23
*/
23
24
export function useVueFlow ( options ?: FlowOptions ) : VueFlowStore {
@@ -125,5 +126,9 @@ export function useVueFlow(options?: FlowOptions): VueFlowStore {
125
126
scope . vueFlowId = vueFlow . id
126
127
}
127
128
129
+ if ( options ) {
130
+ warn ( 'options are deprecated and will be removed in the next major version. Use props on the `<VueFlow>` component instead.' )
131
+ }
132
+
128
133
return vueFlow
129
134
}
Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ export interface FlowProps {
208
208
}
209
209
210
210
// Todo: Remove in next major version
211
+ /** @deprecated use `FlowProps` instead */
211
212
export type FlowOptions = FlowProps
212
213
213
214
export interface FlowEmits {
You can’t perform that action at this time.
0 commit comments