Skip to content

Commit 20e2287

Browse files
committed
style: add return value type to method signatures.
1 parent 19388c3 commit 20e2287

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dynamicBuffer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ export class DynamicBuffer {
15681568
*
15691569
* @returns The string decodes from buffer
15701570
*/
1571-
toLocaleString() {
1571+
toLocaleString(): string {
15721572
return this.toString();
15731573
}
15741574

@@ -1797,7 +1797,7 @@ export class DynamicBuffer {
17971797
* @param data Data to write to buffer.
17981798
* @param offset The position to write data.
17991799
*/
1800-
private writeByte(data: any, offset: number) {
1800+
private writeByte(data: any, offset: number): void {
18011801
this.ensureSize(offset + 1);
18021802

18031803
// @ts-ignore

0 commit comments

Comments
 (0)