Skip to content

Commit

Permalink
fix: suppress closure warnings/errors (angular#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
vikerman authored and mhevery committed Aug 4, 2017
1 parent 0d12a27 commit deae751
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 3 deletions.
6 changes: 5 additions & 1 deletion lib/browser/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* 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
*/
/**
* @fileoverview
* @suppress {missingRequire}
*/

import {findEventTasks} from '../common/events';
import {patchTimer} from '../common/timers';
Expand Down Expand Up @@ -207,4 +211,4 @@ Zone.__load_patch('PromiseRejectionEvent', (global: any, Zone: ZoneType, api: _Z
Zone.__load_patch('util', (global: any, Zone: ZoneType, api: _ZonePrivate) => {
api.patchOnProperties = patchOnProperties;
api.patchMethod = patchMethod;
});
});
4 changes: 4 additions & 0 deletions lib/browser/property-descriptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* 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
*/
/**
* @fileoverview
* @suppress {globalThis}
*/

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

Expand Down
4 changes: 4 additions & 0 deletions lib/common/error-rewrite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* 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
*/
/**
* @fileoverview
* @suppress {globalThis,undefinedVars}
*/

/**
* Extend the Error with additional fields for rewritten stack frames
Expand Down
4 changes: 4 additions & 0 deletions lib/common/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* 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
*/
/**
* @fileoverview
* @suppress {missingRequire}
*/
import {attachOriginToPatched, zoneSymbol} from './utils';

export const TRUE_STR = 'true';
Expand Down
4 changes: 4 additions & 0 deletions lib/common/timers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* 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
*/
/**
* @fileoverview
* @suppress {missingRequire}
*/

import {patchMethod} from './utils';

Expand Down
4 changes: 2 additions & 2 deletions lib/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Suppress closure compiler errors about unknown 'Zone' variable
* @fileoverview
* @suppress {undefinedVars,globalThis}
* @suppress {undefinedVars,globalThis,missingRequire}
*/

// Hack since TypeScript isn't compiling this for a worker.
Expand Down Expand Up @@ -366,4 +366,4 @@ export function isIEOrEdge() {
return ieOrEdge;
} catch (error) {
}
}
}
4 changes: 4 additions & 0 deletions lib/zone-spec/wtf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* 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
*/
/**
* @fileoverview
* @suppress {missingRequire}
*/

(function(global: any) {
interface Wtf {
Expand Down

0 comments on commit deae751

Please sign in to comment.