Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#51470 [dygraphs] Fix error by @martin-badin
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-badin authored Feb 28, 2021
1 parent f3f0834 commit 86fb20f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions types/dygraphs/dygraphs-tests.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Dygraph from 'dygraphs';

Dygraph.Plotters;

Dygraph.PointType;
Expand Down
4 changes: 2 additions & 2 deletions types/dygraphs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

/// <reference types="google.visualization" />

declare namespace dygraphs {
export namespace dygraphs {
type DataArray = Array<Array<number | Date | null>>;

type Data = string | DataArray | google.visualization.DataTable;
Expand Down Expand Up @@ -1149,7 +1149,7 @@ declare namespace dygraphs {
type Axis = 'x' | 'y' | 'y2';
}

declare class Dygraph {
export default class Dygraph {
/**
* Creates an interactive, zoomable chart.
* {@link https://dygraphs.com/jsdoc/symbols/Dygraph.html#constructor}
Expand Down
2 changes: 2 additions & 0 deletions types/dygraphs/test/dygraphs-tests-old.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Tests that were present in the old 1.1 type declarations
// These tests are copied more or less directly from http://dygraphs.com/tests/

import Dygraph, { dygraphs } from 'dygraphs';

function demo() {
const g14 = new Dygraph(document.getElementById('div_g14')!, 'data', {
rollPeriod: 14,
Expand Down

0 comments on commit 86fb20f

Please sign in to comment.