@types/expect
Advanced tools
Comparing version 1.20.0 to 1.20.1
@@ -7,7 +7,7 @@ // Type definitions for Expect 1.20 | ||
declare namespace expect { | ||
export type CompareValues<T> = (a: T, b: T) => boolean; | ||
export type Comparator = (target: {}, key: string) => boolean; | ||
export type KeyType = string | number; | ||
type CompareValues<T> = (a: T, b: T) => boolean; | ||
type Comparator = (target: {}, key: string) => boolean; | ||
type KeyType = string | number; | ||
export class Expectation<T> { | ||
class Expectation<T> { | ||
constructor(actual: any); | ||
@@ -65,7 +65,7 @@ toExist(message?: string): Expectation<T>; | ||
export interface Extension { | ||
interface Extension { | ||
[name: string]: (args?: any[]) => void; | ||
} | ||
export interface Call<T> { | ||
interface Call<T> { | ||
context: T; | ||
@@ -75,3 +75,3 @@ arguments: any[]; | ||
export interface Spy<T> { | ||
interface Spy<T> { | ||
(...args: any[]): void; | ||
@@ -90,10 +90,8 @@ __isSpy: boolean; | ||
export function createSpy(fn?: (...args: any[]) => any, restore?: (...args: any[]) => any): Spy<any>; | ||
export function spyOn<T>(object: T, methodName: string): Spy<T>; | ||
export function isSpy(object: {}): boolean; | ||
export function restoreSpies(): void; | ||
export function assert(condition: boolean, messageFormat: string, ...extraArgs: any[]): void; | ||
export function extend(extension: Extension): void; | ||
function createSpy(fn?: (...args: any[]) => any, restore?: (...args: any[]) => any): Spy<any>; | ||
function spyOn<T>(object: T, methodName: string): Spy<T>; | ||
function isSpy(object: {}): boolean; | ||
function restoreSpies(): void; | ||
function assert(condition: boolean, messageFormat: string, ...extraArgs: any[]): void; | ||
function extend(extension: Extension): void; | ||
} | ||
@@ -100,0 +98,0 @@ |
{ | ||
"name": "@types/expect", | ||
"version": "1.20.0", | ||
"version": "1.20.1", | ||
"description": "TypeScript definitions for Expect", | ||
"license": "MIT", | ||
"author": "Justin Reidy <https://github.com/jmreidy/>, Risto Keravuori <https://github.com/merrywhether/>", | ||
"contributors": [ | ||
{ | ||
"name": "Justin Reidy", | ||
"url": "https://github.com/jmreidy/" | ||
}, | ||
{ | ||
"name": "Risto Keravuori", | ||
"url": "https://github.com/merrywhether/" | ||
} | ||
], | ||
"main": "", | ||
@@ -15,4 +24,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "7482b865fb9867bd3d409a7f4dfa05f4fc22bde1927e8c5d15e9f1713c0cd04a", | ||
"typesPublisherContentHash": "91b3ef36a4fd8dca52bb18eebbfd50d8c59868e452e4b2d25fe718ada1b1e96c", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,5 +11,4 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 06 Jan 2017 03:07:08 GMT | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
* Last updated: Fri, 24 Mar 2017 15:49:51 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
@@ -16,0 +15,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6071
3
82
17