mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fix constructor
This commit is contained in:
@@ -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
@@ -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);
|
||||
|
||||
|
||||
Vendored
+5
-5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user