Igor Oleinikov
|
e355ec2bb9
|
routie: fixed tests
|
2013-12-19 19:50:19 +04:00 |
|
Igor Oleinikov
|
b56ddda6d9
|
rethinkdb: fixed test
|
2013-12-19 19:48:57 +04:00 |
|
Igor Oleinikov
|
4070ed0e79
|
requirejs: fixed test
|
2013-12-19 19:46:26 +04:00 |
|
Igor Oleinikov
|
16e66ad1dd
|
pixi: fixed test
|
2013-12-19 19:44:01 +04:00 |
|
Igor Oleinikov
|
f95666a523
|
phonejs: added .tscparams to set implicit any
|
2013-12-19 19:43:44 +04:00 |
|
Igor Oleinikov
|
ebc032b8e1
|
pdf: fixed definition (fixes test)
|
2013-12-19 19:30:43 +04:00 |
|
Igor Oleinikov
|
7d38e1ff5e
|
i18next: fixed test
|
2013-12-19 15:42:57 +04:00 |
|
Igor Oleinikov
|
3668128825
|
jquery: fixed definition for bind (fixes hammerjs test)
|
2013-12-19 15:40:27 +04:00 |
|
Igor Oleinikov
|
97f46965dd
|
greasemonkey: fixed test
|
2013-12-19 15:33:09 +04:00 |
|
Igor Oleinikov
|
e628a5ec4c
|
gldatepicker: fixed definition to align with 0.9.5
|
2013-12-19 15:21:17 +04:00 |
|
Igor Oleinikov
|
bf40f25957
|
gamepad: fixed test
|
2013-12-19 15:06:13 +04:00 |
|
Igor Oleinikov
|
555838d599
|
fabricjs: fixed test
|
2013-12-19 14:59:25 +04:00 |
|
Igor Oleinikov
|
f0e73667f2
|
expect.js: fixed definition (fixes test)
|
2013-12-19 14:54:18 +04:00 |
|
Igor Oleinikov
|
6dc1c510de
|
dhtmlxscheduler: fixed test
|
2013-12-19 14:49:41 +04:00 |
|
Igor Oleinikov
|
5a2fe2364f
|
dhtmlxgantt: fixed test
|
2013-12-19 14:48:32 +04:00 |
|
Igor Oleinikov
|
750401e208
|
crossfilter: fixed definition and test
|
2013-12-19 14:39:30 +04:00 |
|
Igor Oleinikov
|
d6768e5ca8
|
couchbase: fixed test
|
2013-12-19 14:20:32 +04:00 |
|
Igor Oleinikov
|
22d5789d9e
|
commander: fixed test
|
2013-12-19 12:43:43 +04:00 |
|
Igor Oleinikov
|
8d79cda514
|
siesta: fixed definition Browser.firesAtLeastNTimes
|
2013-12-19 12:40:58 +04:00 |
|
Igor Oleinikov
|
4697228830
|
swipeview: fixed definition and test
|
2013-12-19 10:55:24 +04:00 |
|
Igor Oleinikov
|
6128eab489
|
phonegap: fixed definition errors
|
2013-12-19 10:47:40 +04:00 |
|
Igor Oleinikov
|
32797d6a56
|
moment: fixed test again
|
2013-12-19 00:37:19 +04:00 |
|
Igor Oleinikov
|
c50db1735b
|
moment: fixed test
|
2013-12-18 21:27:57 +04:00 |
|
Igor Oleinikov
|
85492e5dfa
|
jquery: fix test
|
2013-12-18 20:55:02 +04:00 |
|
Igor Oleinikov
|
d33450a368
|
jquery.validation: fix test
|
2013-12-18 20:36:55 +04:00 |
|
Igor Oleinikov
|
8a69bce6a6
|
jquery.tinycarousel: updated callback function in the options (fixes test)
|
2013-12-18 20:26:25 +04:00 |
|
Igor Oleinikov
|
2d749660af
|
jquery.gridster: removed type parameter from GridsterOptions.serialize_params (fixes test)
|
2013-12-18 20:19:02 +04:00 |
|
Igor Oleinikov
|
192357c268
|
jquery.bbq: fixed test
|
2013-12-18 20:13:50 +04:00 |
|
Igor Oleinikov
|
aa920d9dd4
|
jqrangeslider: fixed definition order in JQuery instance extensions (fixes test)
|
2013-12-18 20:11:15 +04:00 |
|
Igor Oleinikov
|
be24e3e48c
|
jake: fix test
|
2013-12-18 20:03:39 +04:00 |
|
Igor Oleinikov
|
4a834d61a5
|
Merge remote-tracking branch 'remotes/upstream/switch-0.9.5' into switch-0.9.5
|
2013-12-18 19:54:20 +04:00 |
|
Igor Oleinikov
|
e9b3be70b9
|
rx.async: uninlined Promise definition
|
2013-12-18 12:02:58 +04:00 |
|
Masahiro Wakame
|
f6a49f9442
|
Merge branch 'master' into switch-0.9.5
Conflicts:
ember/ember.d.ts
|
2013-12-18 12:30:03 +09:00 |
|
Masahiro Wakame
|
baa8c18942
|
Merge pull request #1460 from jvilk/node-fixes
[Node] Changing `fs` module callbacks to use `ErrnoException`
|
2013-12-17 18:56:47 -08:00 |
|
Masahiro Wakame
|
6ffb56da12
|
Merge pull request #1459 from rwhepburn/master
Added TypeScript Definition files for Html2Canvas
|
2013-12-17 18:47:33 -08:00 |
|
Masahiro Wakame
|
900f253278
|
Merge pull request #1458 from mapsjs/master
Various updates to the definition file for the MapsJS Typescript Library
|
2013-12-17 18:41:37 -08:00 |
|
Masahiro Wakame
|
dcdc4408ee
|
Merge pull request #1455 from Igorbek/switch-0.9.5
Updated rx.js project
|
2013-12-17 18:31:16 -08:00 |
|
Masahiro Wakame
|
b40911ad8c
|
Merge pull request #1451 from loyd/master
node-ffi: adopt for --noImplicitAny
|
2013-12-17 18:06:38 -08:00 |
|
Masahiro Wakame
|
e86eb8cec4
|
Merge pull request #1449 from ufon/master
Restify: updated plugin definitions, allowed --noImplicitAny compile flag
|
2013-12-17 18:02:16 -08:00 |
|
Masahiro Wakame
|
8711419cbb
|
Merge pull request #1447 from damianog/patch-6
Update angular-scenario.d.ts 'enter' lacks return-type annotation
|
2013-12-17 18:00:50 -08:00 |
|
Masahiro Wakame
|
3f0a20b978
|
Merge pull request #1446 from GaryB432/explicit-any
adding explicit any
|
2013-12-17 18:00:15 -08:00 |
|
Masahiro Wakame
|
40ab26db02
|
Merge pull request #1443 from butlersoftware/knockout---TypeScript-0.9.5-fixes
various knockout test fixes
|
2013-12-17 17:55:58 -08:00 |
|
John Vilk
|
cddd0b7aab
|
[Node] Node attaches errno information to some exceptions.
This is valuable information for Node applications that need to figure out why a particular system call failed.
Note that errno can either be a string or a number, which is why I have typed it as 'any'.
While this is undocumented, it is tested:
Code property: https://github.com/joyent/node/blob/v0.10.23-release/test/simple/test-fs-open.js#L34
Errno property [string]: https://github.com/joyent/node/blob/v0.10.23-release/test/internet/test-dns.js#L148
Errno property [number]: https://github.com/joyent/node/blob/v0.10.23-release/test/simple/test-domain-implicit-fs.js#L43
Syscall property: https://github.com/joyent/node/blob/v0.10.23-release/test/simple/test-stdout-close-catch.js#L38
Path property (I can’t find a test, but many examples have this line): https://github.com/joyent/node/blob/v0.10.23-release/deps/npm/node_modules/fstream-npm/example/bundle.js#L6
..and well supported in the code for all platforms (this is where I got the name 'ErrnoException' from):
*nix: https://github.com/joyent/node/blob/v0.10.23-release/src/node.cc#L719
Windows: https://github.com/joyent/node/blob/v0.10.23-release/src/node.cc#L856
Unfortunately, while every errno exception is guaranteed to have the ‘errno’ and ‘code’ properties (see the logic in the source code in node.cc), there is no hard guarantee that particular library functions will always pass an ErrnoException to the callback. I cannot find a counterexample at this moment, though. Since we can’t have union types in TypeScript, I simply made all of the properties on ErrnoException optional as a compromise.
I am only adding modifications to the fs module, which definitely throws ErrnoExceptions. But according to the examples above, other modules (e.g. dns) also pass errno information back to applications. People familiar with those other modules can update their typings to reference this interface when applicable; I lack the experience with those modules to update their typings.
Further proof:
```javascript
$ node
> var fs = require('fs');
undefined
> fs.open('doesntexistlol', 'r', function(e) { console.log(Object.keys(e)); console.log(e.code); console.log(e.errno); console.log(e.path); });
undefined
> [ 'errno', 'code', 'path' ]
ENOENT
34
doesntexistlol
```
|
2013-12-17 16:36:08 -05:00 |
|
Richard Hepburn
|
93d4a19972
|
Added TypeScript Definition files for Html2Canvas
Added TypeScript Definition files for Html2Canvas - a library for taking
screenshots of a browser window.
|
2013-12-17 11:29:04 -05:00 |
|
Matthew James Davis
|
939223787d
|
update
|
2013-12-17 11:14:41 -05:00 |
|
Matthew James Davis
|
8e06913b6a
|
Merge branch 'master' of https://github.com/mapsjs/DefinitelyTyped
Conflicts:
mapsjs/mapsjs.d.ts
|
2013-12-17 11:14:01 -05:00 |
|
Matthew James Davis
|
d82aee98f0
|
update
|
2013-12-17 11:08:13 -05:00 |
|
Basarat Ali Syed
|
718eff7763
|
Merge pull request #1456 from daptiv/54952-use-new-tslint-rules
Update angular resource definitions, and add injector definition
|
2013-12-17 02:34:08 -08:00 |
|
John Emau
|
459e286cd0
|
added syntax highlighting
|
2013-12-16 19:17:47 -08:00 |
|
John Emau
|
a859e22699
|
added missing test for resource service factory and updated readme
|
2013-12-16 19:15:42 -08:00 |
|