mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Removed dom library expectation
This commit is contained in:
Vendored
+6
@@ -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.
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": false,
|
||||
"noImplicitThis": false,
|
||||
|
||||
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user