Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions types/dygraphs/dygraphs-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,6 @@ d.updateOptions({
event;
},
});

// $ExpectType number
Dygraph.Granularity.MINUTELY;
48 changes: 25 additions & 23 deletions types/dygraphs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1610,29 +1610,31 @@ export default class Dygraph {
static dateTicker: dygraphs.Ticker;

// Tick granularities (passed to ticker).
static SECONDLY: number;
static TWO_SECONDLY: number;
static FIVE_SECONDLY: number;
static TEN_SECONDLY: number;
static THIRTY_SECONDLY: number;
static MINUTELY: number;
static TWO_MINUTELY: number;
static FIVE_MINUTELY: number;
static TEN_MINUTELY: number;
static THIRTY_MINUTELY: number;
static HOURLY: number;
static TWO_HOURLY: number;
static SIX_HOURLY: number;
static DAILY: number;
static TWO_DAILY: number;
static WEEKLY: number;
static MONTHLY: number;
static QUARTERLY: number;
static BIANNUAL: number;
static ANNUAL: number;
static DECADAL: number;
static CENTENNIAL: number;
static NUM_GRANULARITIES: number;
static Granularity: {
SECONDLY: number;
TWO_SECONDLY: number;
FIVE_SECONDLY: number;
TEN_SECONDLY: number;
THIRTY_SECONDLY: number;
MINUTELY: number;
TWO_MINUTELY: number;
FIVE_MINUTELY: number;
TEN_MINUTELY: number;
THIRTY_MINUTELY: number;
HOURLY: number;
TWO_HOURLY: number;
SIX_HOURLY: number;
DAILY: number;
TWO_DAILY: number;
WEEKLY: number;
MONTHLY: number;
QUARTERLY: number;
BIANNUAL: number;
ANNUAL: number;
DECADAL: number;
CENTENNIAL: number;
NUM_GRANULARITIES: number;
};

static defaultInteractionModel: any;

Expand Down
2 changes: 1 addition & 1 deletion types/dygraphs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@types/dygraphs",
"version": "2.1.9999",
"version": "2.2.9999",
"projects": [
"http://dygraphs.com"
],
Expand Down
Loading