refactor(TypeScript): Add noImplicitAny
We automatically insert explicit 'any's where needed. These need to be addressed as in #9100. Fixes #4924
This commit is contained in:
@ -21,8 +21,8 @@ export function main() {
|
||||
it('should expose the index for each match', () => {
|
||||
var re = /(!)/g;
|
||||
var matcher = RegExpWrapper.matcher(re, '0!23!567!!');
|
||||
var indexes = [];
|
||||
var m;
|
||||
var indexes: any[] /** TODO #9100 */ = [];
|
||||
var m: any /** TODO #9100 */;
|
||||
|
||||
while (isPresent(m = RegExpMatcherWrapper.next(matcher))) {
|
||||
indexes.push(m.index);
|
||||
@ -44,7 +44,7 @@ export function main() {
|
||||
|
||||
it("should implement replace all", () => {
|
||||
let re = /(\d)+/g;
|
||||
let m = RegExpWrapper.replaceAll(re, 'a1b2c', (match) => `!${match[1]}!`);
|
||||
let m = RegExpWrapper.replaceAll(re, 'a1b2c', (match: any /** TODO #9100 */) => `!${match[1]}!`);
|
||||
expect(m).toEqual('a!1!b!2!c');
|
||||
});
|
||||
});
|
||||
@ -57,7 +57,7 @@ export function main() {
|
||||
});
|
||||
|
||||
describe('String', () => {
|
||||
var s;
|
||||
var s: any /** TODO #9100 */;
|
||||
|
||||
describe('slice', () => {
|
||||
beforeEach(() => { s = "abcdefghij"; });
|
||||
|
Reference in New Issue
Block a user