diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index f39e1f53d..c52db6c96 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -202,6 +202,7 @@ All definitions files include a header with the author and editors, so at some p * [localForage](https://github.com/mozilla/localForage) (by [david pichsenmeister](https://github.com/3x14159265)) * [Lodash](http://lodash.com/) (by [Brian Zengel](https://github.com/bczengel)) * [Logg](https://github.com/dpup/node-logg) (by [Bret Little](https://github.com/blittle)) +* [Long.js](https://github.com/dcodeIO/Long.js) (by [Toshihide Hara](https://github.com/kerug)) * [lz-string](https://github.com/pieroxy/lz-string) (by [Roman Nikitin](https://github.com/M0ns1gn0r)) * [Marked](https://github.com/chjj/marked) (by [William Orr](https://github.com/worr)) * [mCustomScrollbar](https://github.com/malihu/malihu-custom-scrollbar-plugin) (by [Sarah Williams](https://github.com/flurg)) diff --git a/long/long-tests.ts b/long/long-tests.ts index 35b0d1eea..6679a820a 100644 --- a/long/long-tests.ts +++ b/long/long-tests.ts @@ -10,7 +10,7 @@ var n:number; var b:boolean; var s:string; -val = new (Long)(0xFFFFFFFF, 0x7FFFFFFF); +val = new Long(0xFFFFFFFF, 0x7FFFFFFF); val = Long.from28Bits(0xFFFFFFF, 0xFFFFFFF, 0xFF); diff --git a/long/long.d.ts b/long/long.d.ts index 70de25c14..98200e0a8 100644 --- a/long/long.d.ts +++ b/long/long.d.ts @@ -4,6 +4,8 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped interface LongStatic { + new(low:number, high:number, unsigned?:boolean):Long; + MAX_SIGNED_VALUE:Long; MAX_UNSIGNED_VALUE:Long; MAX_VALUE:Long; @@ -24,8 +26,6 @@ interface LongStatic { } interface Long { - new(low:number, high:number, unsigned?:boolean):Long; - high:number; low:number; unsigned:boolean; @@ -73,8 +73,8 @@ declare module dcodeIO { } // for node, commonjs -declare var Long:LongStatic; - declare module "long" { -export = Long; + export = Long; } + +declare var Long:LongStatic;