Skip to content

Commit

Permalink
Merge pull request #4 from bryanjhv/issue-2
Browse files Browse the repository at this point in the history
Add TypeScript declaration
  • Loading branch information
mesaugat committed Oct 23, 2017
2 parents 25ab820 + d5489de commit 62a94b1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/// <reference types="chai" />

declare global {
namespace Chai {
interface Assertion {
excluding(props: string|string[]): Assertion;
excludingEvery(props: string|string[]): Assertion;
}
}
}

declare function chaiExclude(chai: any, utils: any): void;
export = chaiExclude;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"url": "https://github.com/mesaugat/chai-exclude/issues"
},
"devDependencies": {
"@types/chai": "^4.0.4",
"chai": "^4.1.2",
"eslint": "^4.9.0",
"eslint-config-standard": "^10.2.1",
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# yarn lockfile v1


"@types/chai@^4.0.4":
version "4.0.4"
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.0.4.tgz#fe86315d9a66827feeb16f73bc954688ec950e18"

acorn-jsx@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b"
Expand Down

0 comments on commit 62a94b1

Please sign in to comment.