diff --git a/types/chai/index.d.ts b/types/chai/index.d.ts index 43acad105a..4582e884b1 100644 --- a/types/chai/index.d.ts +++ b/types/chai/index.d.ts @@ -10,6 +10,7 @@ // Gintautas Miselis // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// // declare namespace Chai { @@ -1651,10 +1652,10 @@ declare namespace Chai { declare const chai: Chai.ChaiStatic; -declare module "chai" { - export = chai; -} +export = chai; -interface Object { - should: Chai.Assertion; +declare global { + interface Object { + should: Chai.Assertion; + } } diff --git a/types/chai/tslint.json b/types/chai/tslint.json index e7ca9e57c7..9e219ef9a8 100644 --- a/types/chai/tslint.json +++ b/types/chai/tslint.json @@ -9,7 +9,6 @@ "no-empty-interface": false, "no-inferrable-types": false, "no-redundant-jsdoc-2": false, - "no-single-declare-module": false, "no-unnecessary-class": false, "no-unnecessary-generics": false, "prefer-const": false,