update(store): remove promise from setState

* add default values for nodeTypes/edgeTypes - empty array for customs

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-25 15:21:36 +01:00
parent fd83a6d365
commit 233e915376
3 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ export interface FlowActions {
setConnectionNodeId: (payload: SetConnectionId) => void
setInteractive: (isInteractive: boolean) => void
addElements: (elements: Elements) => void
setState: (state: FlowOptions) => Promise<void>
setState: (state: FlowOptions) => void
}
export interface FlowGetters {