feat(components): Return if document is undefined

This commit is contained in:
Przemysław Żydek
2021-03-22 11:36:10 +01:00
parent 96290483b1
commit a7e0ace550
5 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -431,7 +431,7 @@ export interface ReactFlowState {
onConnectStop?: OnConnectStopFunc;
onConnectEnd?: OnConnectEndFunc;
document: Document | ShadowRoot;
document?: Document | ShadowRoot;
}
export type UpdateNodeInternals = (nodeId: ElementId) => void;