summaryrefslogtreecommitdiff
path: root/js/buffer.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2019-03-10 04:30:38 +1100
committerRyan Dahl <ry@tinyclouds.org>2019-03-09 12:30:38 -0500
commit034e2cc02829c9244b32232074c7a48af827a2fb (patch)
treebade01606a1ee076c1f753ce99c97ddb1e4edf30 /js/buffer.ts
parent8c7a12d1b258f0ef5ab27f49c424331d43e8d97f (diff)
Migrate from tslint to eslint for linting (#1905)
Diffstat (limited to 'js/buffer.ts')
-rw-r--r--js/buffer.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/buffer.ts b/js/buffer.ts
index db060f2ff..c5be762f5 100644
--- a/js/buffer.ts
+++ b/js/buffer.ts
@@ -66,14 +66,14 @@ export class Buffer implements Reader, Writer {
}
/** empty() returns whether the unread portion of the buffer is empty. */
- empty() {
+ empty(): boolean {
return this.buf.byteLength <= this.off;
}
/** length is a getter that returns the number of bytes of the unread
* portion of the buffer
*/
- get length() {
+ get length(): number {
return this.buf.byteLength - this.off;
}