mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-13 22:40:50 +08:00
Add global chrome object through window
It allows to add a check for existence of 'chrome' object. Without it the strict mode can complain about undefined variable.
This commit is contained in:
7
chrome/chrome.d.ts
vendored
7
chrome/chrome.d.ts
vendored
@@ -5,6 +5,13 @@
|
||||
|
||||
/// <reference path='../webrtc/MediaStream.d.ts'/>
|
||||
|
||||
////////////////////
|
||||
// Global object
|
||||
////////////////////
|
||||
interface Window {
|
||||
chrome: typeof chrome;
|
||||
}
|
||||
|
||||
////////////////////
|
||||
// Alarms
|
||||
////////////////////
|
||||
|
||||
Reference in New Issue
Block a user