From 6dda2973562b160555844271c4f84120a1a53e95 Mon Sep 17 00:00:00 2001 From: dencap Date: Fri, 24 Jun 2016 09:13:49 +0200 Subject: [PATCH] Added missing static definition of DEFAULT_ENDIAN and fixed bad signature of allocate --- bytebuffer/bytebuffer.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bytebuffer/bytebuffer.d.ts b/bytebuffer/bytebuffer.d.ts index e87fb710d8..a58509e4c6 100644 --- a/bytebuffer/bytebuffer.d.ts +++ b/bytebuffer/bytebuffer.d.ts @@ -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.