Removed dom library expectation

This commit is contained in:
Bill Ticehurst
2017-12-15 10:31:21 -08:00
parent 8295e5c233
commit 97d227c45f
3 changed files with 10 additions and 3 deletions
+6
View File
@@ -7,6 +7,12 @@ declare var _: _.UnderscoreStatic;
export = _;
export as namespace _;
// The DOM is not required to be present, but these definitions reference type Element for the
// isElement check. If the DOM is present, this declaration will merge.
declare global {
interface Element { }
}
declare module _ {
/**
* underscore.js _.throttle options.
+1 -2
View File
@@ -2,8 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
"es6"
],
"noImplicitAny": false,
"noImplicitThis": false,
+3 -1
View File
@@ -1,6 +1,8 @@
declare var $: any;
declare var $: any, window: any;
declare var alert: (msg: string) => any;
declare var console: {log: any};
_.each([1, 2, 3], (num) => alert(num.toString()));
_.each({ one: 1, two: 2, three: 3 }, (value, key) => alert(value.toString()));