Skip to content

Commit 8c59dfc

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. (cherry picked from commit eeccbcd)
1 parent a2bd940 commit 8c59dfc

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
@@ -48,7 +48,7 @@ export class Chunk {
4848
(this._right ? this._right.length : 0)
4949
);
5050
}
51-
toString(encoding = 'utf-8') {
51+
toString(encoding: BufferEncoding = 'utf-8') {
5252
return (
5353
(this._left ? this._left.toString(encoding) : '') +
5454
(this._content ? this._content.toString(encoding) : '') +
@@ -234,7 +234,7 @@ export class UpdateBuffer {
234234
return this._originalContent;
235235
}
236236

237-
toString(encoding = 'utf-8'): string {
237+
toString(encoding: BufferEncoding = 'utf-8'): string {
238238
return this._linkedList.reduce((acc, chunk) => acc + chunk.toString(encoding), '');
239239
}
240240
generate(): Buffer {

0 commit comments

Comments
 (0)