This commit is contained in:
Alexander T 2018-05-18 17:00:23 +03:00
Родитель 3b4df419f4
Коммит 759603a71e
3 изменённых файлов: 7 добавлений и 60 удалений

Просмотреть файл

@ -1,6 +1,6 @@
language: node_js
- 9
- 8
- "node"
dist: trusty
sudo: false

Просмотреть файл

@ -21,6 +21,7 @@
"@types/faker": "4.1.2",
"@types/jasmine": "2.8.6",
"@types/jasmine-ajax": "3.1.37",
"@types/node": "9.6.17",
"faker": "4.1.0",
"fork-ts-checker-webpack-plugin": "0.4.1",
"jasmine": "3.1.0",
@ -55,6 +56,10 @@
"xmlhttprequest",
"superagent"
],
"engines": {
"node": ">=9.9.0",
"npm": ">=5.6.0"
},
"license": "MIT",
"types": "dist/SimpleRestClients.d.ts"
}

58
src/typings/assert.d.ts поставляемый
Просмотреть файл

@ -1,58 +0,0 @@
// Type definitions for assert and power-assert
// Project: https://github.com/Jxck/assert
// Project: https://github.com/twada/power-assert
// Definitions by: vvakame <https://github.com/vvakame>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// copy from assert external module in node.d.ts
declare function assert(value:any, message?:string):void;
declare namespace assert {
export class AssertionError implements Error {
name:string;
message:string;
actual:any;
expected:any;
operator:string;
generatedMessage:boolean;
constructor(options?:{message?: string; actual?: any; expected?: any; operator?: string; stackStartFunction?: Function});
}
export function fail(actual?:any, expected?:any, message?:string, operator?:string):void;
export function ok(value:any, message?:string):void;
export function equal(actual:any, expected:any, message?:string):void;
export function notEqual(actual:any, expected:any, message?:string):void;
export function deepEqual(actual:any, expected:any, message?:string):void;
export function notDeepEqual(acutal:any, expected:any, message?:string):void;
export function strictEqual(actual:any, expected:any, message?:string):void;
export function notStrictEqual(actual:any, expected:any, message?:string):void;
export var throws:{
(block:Function, message?:string): void;
(block:Function, error:Function, message?:string): void;
(block:Function, error:RegExp, message?:string): void;
(block:Function, error:(err:any) => boolean, message?:string): void;
};
export var doesNotThrow:{
(block:Function, message?:string): void;
(block:Function, error:Function, message?:string): void;
(block:Function, error:RegExp, message?:string): void;
(block:Function, error:(err:any) => boolean, message?:string): void;
};
export function ifError(value:any):void;
}
// duplicate to node.d.ts
declare module "assert" {
export = assert;
}