mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
Merge pull request #9798 from cappellin/master
Added missing static definition of DEFAULT_ENDIAN and fixed bad signature
This commit is contained in:
7
bytebuffer/bytebuffer.d.ts
vendored
7
bytebuffer/bytebuffer.d.ts
vendored
@@ -23,6 +23,11 @@ declare class ByteBuffer
|
||||
*/
|
||||
static DEFAULT_CAPACITY: number;
|
||||
|
||||
/**
|
||||
* Default endianess of false for big endian.
|
||||
*/
|
||||
static DEFAULT_ENDIAN: boolean;
|
||||
|
||||
/**
|
||||
* Default no assertions flag of false.
|
||||
*/
|
||||
@@ -96,7 +101,7 @@ declare class ByteBuffer
|
||||
/**
|
||||
* Allocates a new ByteBuffer backed by a buffer of the specified capacity.
|
||||
*/
|
||||
static allocate( capacity?: number, littleEndian?: number, noAssert?: boolean ): ByteBuffer;
|
||||
static allocate( capacity?: number, littleEndian?: boolean, noAssert?: boolean ): ByteBuffer;
|
||||
|
||||
/**
|
||||
* Decodes a base64 encoded string to binary like window.atob does.
|
||||
|
||||
Reference in New Issue
Block a user