Skip to content

chore: Update type definitions to match API more closely #1048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Dec 12, 2017
Merged
Show file tree
Hide file tree
Changes from 6 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
4 changes: 4 additions & 0 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@
"@cypress/xvfb": "1.0.4",
"@types/blob-util": "1.3.3",
"@types/bluebird": "3.5.18",
"@types/chai": "4.0.8",
"@types/chai-jquery": "1.1.35",
"@types/jquery": "3.2.16",
"@types/lodash": "4.14.87",
"@types/minimatch": "3.0.1",
"@types/mocha": "2.2.44",
"@types/sinon": "4.0.0",
"@types/sinon-chai": "2.7.29",
"bluebird": "3.5.0",
"chalk": "2.1.0",
"check-more-types": "2.24.0",
Expand Down
13 changes: 13 additions & 0 deletions cli/types/chai.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Shim definition to export a namespace. Cypress is actually a global module
// so import/export isn't allowed there. We import here and define a global module
// tslint:disable-next-line:no-implicit-dependencies
import * as chai from 'chai'

export = Chai
export as namespace Chai

declare namespace Chai {
type ChaiStatic = typeof chai
type ExpectStatic = typeof chai.expect
type AssertStatic = typeof chai.assert
}
Loading