Add chai-as-promised-typescript-typings
This commit is contained in:
parent
897cfb491c
commit
4d30e1115f
@ -4,9 +4,6 @@
|
|||||||
"description": "Typescript type definitions for chai-as-promised",
|
"description": "Typescript type definitions for chai-as-promised",
|
||||||
"main": "index.d.ts",
|
"main": "index.d.ts",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"scripts": {
|
|
||||||
"lint": "tslint index.d.ts"
|
|
||||||
},
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/0xProject/0x.js.git"
|
"url": "git+https://github.com/0xProject/0x.js.git"
|
||||||
|
3
packages/chai-typescript-typings/CHANGELOG.md
Normal file
3
packages/chai-typescript-typings/CHANGELOG.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# CHANGELOG
|
||||||
|
|
||||||
|
## v0.x.x - _TBD, 2018_
|
43
packages/chai-typescript-typings/README.md
Normal file
43
packages/chai-typescript-typings/README.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
## chai-typescript-typings
|
||||||
|
|
||||||
|
Fork of type definitions for chai that includes changes made by dirty-chai
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yarn add -D chai-typescript-typings
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Add the following line within an `include` section of your `tsconfig.json`
|
||||||
|
|
||||||
|
```json
|
||||||
|
"./node_modules/chai-typescript-typings/index.d.ts"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
We strongly encourage that the community help us make improvements and determine the future direction of the protocol. To report bugs within this package, please create an issue in this repository.
|
||||||
|
|
||||||
|
Please read our [contribution guidelines](../../CONTRIBUTING.md) before getting started.
|
||||||
|
|
||||||
|
### Install Dependencies
|
||||||
|
|
||||||
|
If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yarn config set workspaces-experimental true
|
||||||
|
```
|
||||||
|
|
||||||
|
Then install dependencies
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yarn install
|
||||||
|
```
|
||||||
|
|
||||||
|
### Lint
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yarn lint
|
||||||
|
```
|
1254
packages/chai-typescript-typings/index.d.ts
vendored
Normal file
1254
packages/chai-typescript-typings/index.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
16
packages/chai-typescript-typings/package.json
Normal file
16
packages/chai-typescript-typings/package.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"name": "chai-typescript-typings",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"description": "Typescript type definitions for chai",
|
||||||
|
"main": "index.d.ts",
|
||||||
|
"types": "index.d.ts",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/0xProject/0x.js.git"
|
||||||
|
},
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/0xProject/0x.js/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/0xProject/0x.js/packages/chai-typescript-typings#readme"
|
||||||
|
}
|
3
packages/chai-typescript-typings/tslint.json
Normal file
3
packages/chai-typescript-typings/tslint.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"extends": ["tslint-config-0xproject"]
|
||||||
|
}
|
@ -12,9 +12,9 @@ export const errorReporter = {
|
|||||||
|
|
||||||
rollbar.handleUncaughtExceptions(configs.ROLLBAR_ACCESS_KEY);
|
rollbar.handleUncaughtExceptions(configs.ROLLBAR_ACCESS_KEY);
|
||||||
|
|
||||||
process.on('unhandledRejection', (err: Error) => {
|
process.on('unhandledRejection', async (err: Error) => {
|
||||||
utils.consoleLog(`Uncaught exception ${err}. Stack: ${err.stack}`);
|
utils.consoleLog(`Uncaught exception ${err}. Stack: ${err.stack}`);
|
||||||
this.reportAsync(err);
|
await this.reportAsync(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user