From 53ad6b825c0154f72a83667fa3da01ea15cdacb9 Mon Sep 17 00:00:00 2001 From: Ashish Gaurav Date: Wed, 4 Oct 2017 19:44:44 +0530 Subject: [PATCH] [dygraphs] Update legend option type (#20260) * [dygraphs] update legend option - add `never` to list of allowed string values for `legend` option - ref: http://dygraphs.com/tests/legend-values.html * [dygraphs] version update - to publish new @types/dygraph package on npm * [dygraphs] Updating comment for legend option - adding comment for 'never' legend style. * [dygraphs] correcting author url --- types/dygraphs/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/dygraphs/index.d.ts b/types/dygraphs/index.d.ts index 33db704b3b..c8617b18fc 100644 --- a/types/dygraphs/index.d.ts +++ b/types/dygraphs/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for dygraphs 1.1.2 +// Type definitions for dygraphs 1.1.3 // Project: http://dygraphs.com -// Definitions by: Dan Vanderkam +// Definitions by: Dan Vanderkam // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -595,9 +595,9 @@ declare namespace dygraphs { /** * When to display the legend. By default, it only appears when a user mouses over the chart. * Set it to "always" to always display a legend of some sort. When set to "follow", legend - * follows highlighted points. + * follows highlighted points. If set to 'never' then it will not appear at all. */ - legend?: 'always' | 'follow' | 'onmouseover'; + legend?: 'always' | 'follow' | 'onmouseover' | 'never'; /** * for details see https://github.com/danvk/dygraphs/pull/683