Skip to content

Commit eeccbcd

Browse files
dgp1130alan-agius4
authored andcommitted
build: update some types to be compatible with Node v14
See http://cl/406111801 with the google3 version of this change.
1 parent 5a2a2fc commit eeccbcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular_devkit/schematics/src/utility/update-buffer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class Chunk {
5252
(this._right ? this._right.length : 0)
5353
);
5454
}
55-
toString(encoding = 'utf-8') {
55+
toString(encoding: BufferEncoding = 'utf-8') {
5656
return (
5757
(this._left ? this._left.toString(encoding) : '') +
5858
(this._content ? this._content.toString(encoding) : '') +
@@ -279,7 +279,7 @@ export class UpdateBuffer extends UpdateBufferBase {
279279
return this._originalContent;
280280
}
281281

282-
toString(encoding = 'utf-8'): string {
282+
toString(encoding: BufferEncoding = 'utf-8'): string {
283283
return this._linkedList.reduce((acc, chunk) => acc + chunk.toString(encoding), '');
284284
}
285285
generate(): Buffer {

0 commit comments

Comments
 (0)