Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit deae751

Browse files
vikermanmhevery
authored andcommitted
fix: suppress closure warnings/errors (#861)
1 parent 0d12a27 commit deae751

File tree

7 files changed

+27
-3
lines changed

7 files changed

+27
-3
lines changed

Diff for: lib/browser/browser.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
/**
9+
* @fileoverview
10+
* @suppress {missingRequire}
11+
*/
812

913
import {findEventTasks} from '../common/events';
1014
import {patchTimer} from '../common/timers';
@@ -207,4 +211,4 @@ Zone.__load_patch('PromiseRejectionEvent', (global: any, Zone: ZoneType, api: _Z
207211
Zone.__load_patch('util', (global: any, Zone: ZoneType, api: _ZonePrivate) => {
208212
api.patchOnProperties = patchOnProperties;
209213
api.patchMethod = patchMethod;
210-
});
214+
});

Diff for: lib/browser/property-descriptor.ts

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
/**
9+
* @fileoverview
10+
* @suppress {globalThis}
11+
*/
812

913
import {isBrowser, isMix, isNode, patchClass, patchOnProperties, zoneSymbol} from '../common/utils';
1014

Diff for: lib/common/error-rewrite.ts

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
/**
9+
* @fileoverview
10+
* @suppress {globalThis,undefinedVars}
11+
*/
812

913
/**
1014
* Extend the Error with additional fields for rewritten stack frames

Diff for: lib/common/events.ts

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
/**
9+
* @fileoverview
10+
* @suppress {missingRequire}
11+
*/
812
import {attachOriginToPatched, zoneSymbol} from './utils';
913

1014
export const TRUE_STR = 'true';

Diff for: lib/common/timers.ts

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
/**
9+
* @fileoverview
10+
* @suppress {missingRequire}
11+
*/
812

913
import {patchMethod} from './utils';
1014

Diff for: lib/common/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Suppress closure compiler errors about unknown 'Zone' variable
1010
* @fileoverview
11-
* @suppress {undefinedVars,globalThis}
11+
* @suppress {undefinedVars,globalThis,missingRequire}
1212
*/
1313

1414
// Hack since TypeScript isn't compiling this for a worker.
@@ -366,4 +366,4 @@ export function isIEOrEdge() {
366366
return ieOrEdge;
367367
} catch (error) {
368368
}
369-
}
369+
}

Diff for: lib/zone-spec/wtf.ts

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
/**
9+
* @fileoverview
10+
* @suppress {missingRequire}
11+
*/
812

913
(function(global: any) {
1014
interface Wtf {

0 commit comments

Comments
 (0)