mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 04:00:33 +08:00
* Added typings for saywhen. * Updated to pass linting. * Removed redundant jasmine reference. * Removed es2016 target. * Updated defintions and tests. * Fixed tests. * Fixed linting
9 lines
321 B
TypeScript
9 lines
321 B
TypeScript
import * as when from 'saywhen';
|
|
|
|
when(jasmine.createSpy('test')); // $ExpectType CallHandler<Spy>
|
|
when(jasmine.createSpy('test')).isCalled; // $ExpectType Proxy<Spy>
|
|
|
|
when.captor(); // $ExpectType MatcherProxy<{}>
|
|
when.captor(jasmine.any(Number)); // $ExpectType MatcherProxy<Any>
|
|
when.noConflict(); // $ExpectType void
|