diff --git a/types/vis/index.d.ts b/types/vis/index.d.ts index ed1c235061..caa0ab945a 100644 --- a/types/vis/index.d.ts +++ b/types/vis/index.d.ts @@ -8,6 +8,7 @@ // Matthieu Maitre // Adam Lewis // Alex Soh +// Oleksii Kachura // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { MomentInput, MomentFormatSpecification, Moment } from 'moment'; @@ -1691,7 +1692,7 @@ export interface Node { x?: number; y?: number; fixed?: boolean; - image?: string; + image?: string | Image; shape?: string; color?: string | Color; } @@ -1760,6 +1761,11 @@ export interface Options { physics?: any; // http://visjs.org/docs/network/physics.html# } +export interface Image { + unselected?: string; + selected?: string; +} + export interface Color { border?: string; @@ -1819,7 +1825,7 @@ export interface NodeOptions { id?: string; - image?: string; + image?: string | Image; label?: string;