Allow Edge arrows from to be left out of edge options

network.setOptions({edges: {arrows: {to: true}}}); should be accepted since it works properly in vis, but previous @types/vis will fail type-checking.
This commit is contained in:
Michael Dombrowski
2018-04-02 21:25:27 -04:00
committed by GitHub
parent 8a857d6473
commit f57ff453de
+1 -1
View File
@@ -1861,7 +1861,7 @@ export interface EdgeOptions {
enabled?: boolean,
scaleFactor?: number,
},
from: boolean | {
from?: boolean | {
enabled?: boolean,
scaleFactor?: number,
}