With these changes, the types are a little stricter now and also not
compatible with Protractor's jasmine-like syntax. So, we have to also
use `@types/jasminewd2` for e2e tests (but not for non-e2e tests).
I also had to "augment" `@types/jasminewd2`, because the latest
typings from [DefinitelyTyped][1] do not reflect the fact that the
`jasminewd2` version (v2.1.0) currently used by Protractor supports
passing a `done` callback to a spec.
[1]: 566e039485/types/jasminewd2/index.d.ts (L9-L15)
Fixes #23952
Closes #24733
PR Close #19904
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
// This file contains all ambient imports needed to compile the modules/ source code
|
|
|
|
/// <reference path="../node_modules/@types/hammerjs/index.d.ts" />
|
|
/// <reference path="../node_modules/@types/jasmine/index.d.ts" />
|
|
/// <reference path="../node_modules/@types/node/index.d.ts" />
|
|
/// <reference path="../node_modules/zone.js/dist/zone.js.d.ts" />
|
|
/// <reference path="./es6-subset.d.ts" />
|
|
/// <reference path="./goog.d.ts" />
|
|
/// <reference path="./system.d.ts" />
|
|
|
|
declare let isNode: boolean;
|
|
declare let isBrowser: boolean;
|
|
|
|
declare namespace jasmine {
|
|
interface Matchers<T> {
|
|
toHaveProperties(obj: any): boolean;
|
|
}
|
|
}
|
|
|
|
/**
|
|
*Jasmine matching utilities. These are added in the a more recent version of
|
|
*the Jasmine typedefs than what we are using:
|
|
*https://github.com/DefinitelyTyped/DefinitelyTyped/pull/20771
|
|
*/
|
|
declare namespace jasmine {
|
|
const matchersUtil: MatchersUtil;
|
|
}
|