@types/jasminewd2
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -20,6 +20,6 @@ // Type definitions for jasminewd2 2.0 | ||
interface Promise<T> { | ||
then<U>(onFulfill?: (value: T) => U | Promise<U>, onReject?: (error: any) => U | Promise<U>): Promise<U>; | ||
then<U>(onFulfill?: (value: T) => U | Promise<U>, onReject?: (error: any) => U | Promise<U>): Promise<U>; | ||
} | ||
interface Matchers { | ||
interface Matchers<T> { | ||
toBe(expected: any, expectationFailOutput?: any): Promise<void>; | ||
@@ -48,2 +48,9 @@ toEqual(expected: any, expectationFailOutput?: any): Promise<void>; | ||
interface ArrayLikeMatchers<T> extends Matchers<ArrayLike<T>> { | ||
toBe(expected: Expected<ArrayLike<T>>, expectationFailOutput?: any): Promise<void>; | ||
toEqual(expected: Expected<ArrayLike<T>>, expectationFailOutput?: any): Promise<void>; | ||
toContain(expected: T, expectationFailOutput?: any): Promise<void>; | ||
not: ArrayLikeMatchers<T>; | ||
} | ||
function addMatchers(matchers: AsyncCustomMatcherFactories): void; | ||
@@ -64,8 +71,8 @@ | ||
interface AsyncCustomMatcherFactory { | ||
(util: MatchersUtil, customEqualityTesters: CustomEqualityTester[]): AsyncCustomMatcher; | ||
(util: MatchersUtil, customEqualityTesters: CustomEqualityTester[]): AsyncCustomMatcher; | ||
} | ||
interface AsyncCustomMatcher { | ||
compare<T>(actual: T, expected: T): AsyncCustomMatcherResult; | ||
compare(actual: any, expected: any): AsyncCustomMatcherResult; | ||
compare<T>(actual: T, expected: T): AsyncCustomMatcherResult; | ||
compare(actual: any, expected: any): AsyncCustomMatcherResult; | ||
} | ||
@@ -72,0 +79,0 @@ |
{ | ||
"name": "@types/jasminewd2", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "TypeScript definitions for jasminewd2", | ||
"license": "MIT", | ||
"author": "Sammy Jelin <https://github.com/sjelin>", | ||
"contributors": [ | ||
{ | ||
"name": "Sammy Jelin", | ||
"url": "https://github.com/sjelin" | ||
} | ||
], | ||
"main": "", | ||
@@ -17,4 +22,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "18a0f6ddf864e427ab4f11db7a002de9b50ac4f1df6a97086d7f55e6d4b7a2db", | ||
"typesPublisherContentHash": "0d0e4b53f7fa2411844a4730a51e90d56a143cbc5688629bc8af1aefd4959930", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 10 Feb 2017 22:23:46 GMT | ||
* Last updated: Thu, 16 Mar 2017 14:36:10 GMT | ||
* Dependencies: jasmine | ||
@@ -14,0 +14,0 @@ * Global values: afterAll, afterEach, beforeAll, beforeEach, fit, it, jasmine, xit |
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
5211
3
69