diff --git a/types/karma-chai/index.d.ts b/types/karma-chai/index.d.ts new file mode 100644 index 0000000000..87910cb6e2 --- /dev/null +++ b/types/karma-chai/index.d.ts @@ -0,0 +1,12 @@ +// Type definitions for karma-chai 0.1 +// Project: http://xdissent.github.io/karma-chai +// Definitions by: Jay Sherby +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import chai = require('chai'); + +declare global { + var assert: Chai.AssertStatic; + var expect: Chai.ExpectStatic; + var should: Chai.Should; +} diff --git a/types/karma-chai/karma-chai-tests.ts b/types/karma-chai/karma-chai-tests.ts new file mode 100644 index 0000000000..d463dc6371 --- /dev/null +++ b/types/karma-chai/karma-chai-tests.ts @@ -0,0 +1,3 @@ +true.should.be.ok; +expect(true).to.be.ok; +assert.isTrue(true); diff --git a/types/karma-chai/tsconfig.json b/types/karma-chai/tsconfig.json new file mode 100644 index 0000000000..578bca4c14 --- /dev/null +++ b/types/karma-chai/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "karma-chai-tests.ts" + ] +} diff --git a/types/karma-chai/tslint.json b/types/karma-chai/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/karma-chai/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }