Commit Graph

3 Commits

Author SHA1 Message Date
Andy Hanson
28ef3d201b Remove <reference path="../xxx/xxx.d.ts"> from definitions files and replace it with import * as Xxx from "xxx" or <reference types="xxx"/> 2016-09-16 08:59:57 -07:00
Burt Harris
69eaae71c0 Extend from NodeJS.EventEmitter, not implement.
Corrects errors when new methods added to EventEmitter.

Since EventEmitter is really a class with behavior, it should be extended, rather
than implemented as an interface.   This enables new behavior to be inherited, e.g.
EventListener.prependListener() was added in Node 6.
2016-08-30 19:02:01 -07:00
Alireza Dabiri Nejad
cd4af2f88f Add Nw.js (https://github.com/nwjs/nw.js) Definitions (#9595)
* Add NW.js Definitions File

* Add NW.js Tests File

* Rename nw.js.tests.ts to nw.js-tests.ts

* Fix tests of nw.js-test.ts fails

Tests of `nw.js-test.ts` fails because `nw` was declared as module not namespace.

* Final fixes for tests failures

Fix below issues:
1- no reference to nw.js.d.ts
2- not defined some variables types (item: line 91 - screen: lines 136, 140, 144 - optional: line 167 - msg: line 230 )
2016-06-19 11:35:36 +09:00