Fix constructor

This commit is contained in:
kerug
2014-05-20 21:44:38 +09:00
parent 3cc801ffc3
commit b0b775f937
3 changed files with 7 additions and 6 deletions
+1
View File
@@ -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))
+1 -1
View File
@@ -10,7 +10,7 @@ var n:number;
var b:boolean;
var s:string;
val = new (<any>Long)(0xFFFFFFFF, 0x7FFFFFFF);
val = new Long(0xFFFFFFFF, 0x7FFFFFFF);
val = Long.from28Bits(0xFFFFFFF, 0xFFFFFFF, 0xFF);
+5 -5
View File
@@ -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;