@types/rx-lite-testing
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -14,3 +14,8 @@ // Type definitions for rx-lite-testing 4.0 | ||
startWithTiming<T>(create: () => Observable<T>, createdAt: number, subscribedAt: number, disposedAt: number): MockObserver<T>; | ||
startWithTiming<T>( | ||
create: () => Observable<T>, | ||
createdAt: number, | ||
subscribedAt: number, | ||
disposedAt: number, | ||
): MockObserver<T>; | ||
startWithDispose<T>(create: () => Observable<T>, disposedAt: number): MockObserver<T>; | ||
@@ -21,3 +26,3 @@ startWithCreate<T>(create: () => Observable<T>): MockObserver<T>; | ||
const TestScheduler: { | ||
new (): TestScheduler; | ||
new(): TestScheduler; | ||
}; | ||
@@ -55,3 +60,3 @@ | ||
interface MockObserverStatic extends ObserverStatic { | ||
new <T>(scheduler: IScheduler): MockObserver<T>; | ||
new<T>(scheduler: IScheduler): MockObserver<T>; | ||
} | ||
@@ -58,0 +63,0 @@ |
{ | ||
"name": "@types/rx-lite-testing", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "TypeScript definitions for rx-lite-testing", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rx-lite-testing", | ||
"license": "MIT", | ||
@@ -9,9 +10,12 @@ "contributors": [ | ||
"name": "Igor Oleinikov", | ||
"url": "https://github.com/Igorbek" | ||
"url": "https://github.com/Igorbek", | ||
"githubUsername": "Igorbek" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/rx-lite-testing" | ||
}, | ||
@@ -22,5 +26,4 @@ "scripts": {}, | ||
}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "6a5907d60ea590f26f09f6cc6fa98eb128d6b57dda165e07b24e52c6be675189", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "75272859d16329c48abdde3e5662369083138689048a8009518714b2f0c92dba", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -8,10 +8,80 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/rx-lite-testing | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rx-lite-testing. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rx-lite-testing/index.d.ts) | ||
````ts | ||
// Type definitions for rx-lite-testing 4.0 | ||
// Project: https://github.com/Reactive-Extensions/RxJS | ||
// Definitions by: Igor Oleinikov <https://github.com/Igorbek> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
Additional Details | ||
* Last updated: Tue, 28 Mar 2017 19:51:21 GMT | ||
* Dependencies: rx-lite-virtualtime | ||
* Global values: Rx | ||
/// <reference types="rx-lite-virtualtime" /> | ||
declare namespace Rx { | ||
interface TestScheduler extends VirtualTimeScheduler<number, number> { | ||
createColdObservable<T>(...records: Recorded[]): Observable<T>; | ||
createHotObservable<T>(...records: Recorded[]): Observable<T>; | ||
createObserver<T>(): MockObserver<T>; | ||
startWithTiming<T>( | ||
create: () => Observable<T>, | ||
createdAt: number, | ||
subscribedAt: number, | ||
disposedAt: number, | ||
): MockObserver<T>; | ||
startWithDispose<T>(create: () => Observable<T>, disposedAt: number): MockObserver<T>; | ||
startWithCreate<T>(create: () => Observable<T>): MockObserver<T>; | ||
} | ||
const TestScheduler: { | ||
new(): TestScheduler; | ||
}; | ||
class Recorded { | ||
constructor(time: number, value: any, equalityComparer?: (x: any, y: any) => boolean); | ||
equals(other: Recorded): boolean; | ||
toString(): string; | ||
time: number; | ||
value: any; | ||
} | ||
const ReactiveTest: { | ||
created: number; | ||
subscribed: number; | ||
disposed: number; | ||
onNext(ticks: number, value: any): Recorded; | ||
onError(ticks: number, exception: any): Recorded; | ||
onCompleted(ticks: number): Recorded; | ||
subscribe(subscribeAt: number, unsubscribeAt?: number): Subscription; | ||
}; | ||
class Subscription { | ||
constructor(subscribeAt: number, unsubscribeAt?: number); | ||
equals(other: Subscription): boolean; | ||
} | ||
interface MockObserver<T> extends Observer<T> { | ||
messages: Recorded[]; | ||
} | ||
interface MockObserverStatic extends ObserverStatic { | ||
new<T>(scheduler: IScheduler): MockObserver<T>; | ||
} | ||
const MockObserver: MockObserverStatic; | ||
} | ||
declare module "rx-lite-testing" { | ||
export = Rx; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 27 Sep 2023 07:12:05 GMT | ||
* Dependencies: [@types/rx-lite-virtualtime](https://npmjs.com/package/@types/rx-lite-virtualtime) | ||
* Global values: `Rx` | ||
# Credits | ||
These definitions were written by Igor Oleinikov <https://github.com/Igorbek>. | ||
These definitions were written by [Igor Oleinikov](https://github.com/Igorbek). |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6819
4
53
0
87