Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@types/jasminewd2

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/jasminewd2 - npm Package Compare versions

Comparing version 2.0.10 to 2.0.13

118

jasminewd2/index.d.ts

@@ -1,8 +0,1 @@

// Type definitions for jasminewd2 2.0
// Project: https://github.com/angular/jasminewd
// Definitions by: Sammy Jelin <https://github.com/sjelin>
// George Kalpakas <https://github.com/gkalpak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
/// <reference types="jasmine" />

@@ -19,64 +12,67 @@

declare namespace jasmine {
interface Matchers<T> {
toBe(expected: any, expectationFailOutput?: any): Promise<void>;
toEqual(expected: any, expectationFailOutput?: any): Promise<void>;
toMatch(expected: string | RegExp | Promise<string | RegExp>, expectationFailOutput?: any): Promise<void>;
toBeDefined(expectationFailOutput?: any): Promise<void>;
toBeUndefined(expectationFailOutput?: any): Promise<void>;
toBeNull(expectationFailOutput?: any): Promise<void>;
toBeNaN(): Promise<void>;
toBeTruthy(expectationFailOutput?: any): Promise<void>;
toBeFalsy(expectationFailOutput?: any): Promise<void>;
toHaveBeenCalled(): Promise<void>;
toHaveBeenCalledWith(...params: any[]): Promise<void>;
toHaveBeenCalledTimes(expected: number | Promise<number>): Promise<void>;
toContain(expected: any, expectationFailOutput?: any): Promise<void>;
toBeLessThan(expected: number | Promise<number>, expectationFailOutput?: any): Promise<void>;
toBeLessThanOrEqual(expected: number | Promise<number>, expectationFailOutput?: any): Promise<void>;
toBeGreaterThan(expected: number | Promise<number>, expectationFailOutput?: any): Promise<void>;
toBeGreaterThanOrEqual(expected: number | Promise<number>, expectationFailOutput?: any): Promise<void>;
toBeCloseTo(expected: number | Promise<number>, precision?: any, expectationFailOutput?: any): Promise<void>;
toThrow(expected?: any): Promise<void>;
toThrowError(message?: string | RegExp | Promise<string | RegExp>): Promise<void>;
toThrowError(expected?: new (...args: any[]) => Error | Promise<new (...args: any[]) => Error>, message?: string | RegExp | Promise<string | RegExp>): Promise<void>;
}
interface Matchers<T> {
toBe(expected: any, expectationFailOutput?: any): Promise<void>;
toEqual(expected: any, expectationFailOutput?: any): Promise<void>;
toMatch(expected: string | RegExp | Promise<string | RegExp>, expectationFailOutput?: any): Promise<void>;
toBeDefined(expectationFailOutput?: any): Promise<void>;
toBeUndefined(expectationFailOutput?: any): Promise<void>;
toBeNull(expectationFailOutput?: any): Promise<void>;
toBeNaN(): Promise<void>;
toBeTruthy(expectationFailOutput?: any): Promise<void>;
toBeFalsy(expectationFailOutput?: any): Promise<void>;
toHaveBeenCalled(): Promise<void>;
toHaveBeenCalledWith(...params: any[]): Promise<void>;
toHaveBeenCalledTimes(expected: number | Promise<number>): Promise<void>;
toContain(expected: any, expectationFailOutput?: any): Promise<void>;
toBeLessThan(expected: number | Promise<number>, expectationFailOutput?: any): Promise<void>;
toBeLessThanOrEqual(expected: number | Promise<number>, expectationFailOutput?: any): Promise<void>;
toBeGreaterThan(expected: number | Promise<number>, expectationFailOutput?: any): Promise<void>;
toBeGreaterThanOrEqual(expected: number | Promise<number>, expectationFailOutput?: any): Promise<void>;
toBeCloseTo(expected: number | Promise<number>, precision?: any, expectationFailOutput?: any): Promise<void>;
toThrow(expected?: any): Promise<void>;
toThrowError(message?: string | RegExp | Promise<string | RegExp>): Promise<void>;
toThrowError(
expected?: new(...args: any[]) => Error | Promise<new(...args: any[]) => Error>,
message?: string | RegExp | Promise<string | RegExp>,
): 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>;
}
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>;
}
// Add definition to be compatible with latest jasmine v3 types.
// Even though library is not compatible with jasmine v3, there is no suitable way to configure that now here.
// See for more detail: https://github.com/microsoft/dtslint/issues/253
interface FunctionMatchers<Fn extends (...args: any[]) => any> extends Matchers<any> {
toHaveBeenCalledWith(...params: any[]): boolean;
toHaveBeenCalledWith(...params: any[]): Promise<void>;
}
// Add definition to be compatible with latest jasmine v3 types.
// Even though library is not compatible with jasmine v3, there is no suitable way to configure that now here.
// See for more detail: https://github.com/microsoft/dtslint/issues/253
interface FunctionMatchers<Fn extends (...args: any[]) => any> extends Matchers<any> {
toHaveBeenCalledWith(...params: any[]): boolean;
toHaveBeenCalledWith(...params: any[]): Promise<void>;
}
function addMatchers(matchers: AsyncCustomMatcherFactories): void;
function addMatchers(matchers: AsyncCustomMatcherFactories): void;
interface Spec {
addMatchers(matchers: AsyncCustomMatcherFactories): void;
}
interface Spec {
addMatchers(matchers: AsyncCustomMatcherFactories): void;
}
interface AsyncCustomMatcherFactories {
[index: string]: AsyncCustomMatcherFactory;
}
interface AsyncCustomMatcherFactories {
[index: string]: AsyncCustomMatcherFactory;
}
interface AsyncCustomMatcherFactory {
(util: MatchersUtil, customEqualityTesters: CustomEqualityTester[]): AsyncCustomMatcher;
}
interface AsyncCustomMatcherFactory {
(util: MatchersUtil, customEqualityTesters: CustomEqualityTester[]): AsyncCustomMatcher;
}
interface AsyncCustomMatcher {
compare<T>(actual: T, expected: T): AsyncCustomMatcherResult;
compare(actual: any, expected: any): AsyncCustomMatcherResult;
}
interface AsyncCustomMatcher {
compare<T>(actual: T, expected: T): AsyncCustomMatcherResult;
compare(actual: any, expected: any): AsyncCustomMatcherResult;
}
interface AsyncCustomMatcherResult {
pass: boolean | Promise<boolean>;
message?: string | undefined;
}
interface AsyncCustomMatcherResult {
pass: boolean | Promise<boolean>;
message?: string | undefined;
}
}
{
"name": "@types/jasminewd2",
"version": "2.0.10",
"version": "2.0.13",
"description": "TypeScript definitions for jasminewd2",

@@ -10,9 +10,9 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jasminewd2",

"name": "Sammy Jelin",
"url": "https://github.com/sjelin",
"githubUsername": "sjelin"
"githubUsername": "sjelin",
"url": "https://github.com/sjelin"
},
{
"name": "George Kalpakas",
"url": "https://github.com/gkalpak",
"githubUsername": "gkalpak"
"githubUsername": "gkalpak",
"url": "https://github.com/gkalpak"
}

@@ -31,4 +31,4 @@ ],

},
"typesPublisherContentHash": "33139e66d6a81736b699eea0013345c6458867fa5de2114e0e84238b02666384",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "2be16f829b3d9b5cbc8d9c7f933d47b0f90a951131136f35a6614de69ebc6033",
"typeScriptVersion": "4.5"
}

@@ -11,7 +11,6 @@ # Installation

### Additional Details
* Last updated: Tue, 06 Jul 2021 21:33:43 GMT
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT
* Dependencies: [@types/jasmine](https://npmjs.com/package/@types/jasmine)
* Global values: `afterAll`, `afterEach`, `beforeAll`, `beforeEach`, `fit`, `it`, `jasmine`, `xit`
# Credits
These definitions were written by [Sammy Jelin](https://github.com/sjelin), and [George Kalpakas](https://github.com/gkalpak).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc