We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2bd940 commit 8c59dfcCopy full SHA for 8c59dfc
packages/angular_devkit/schematics/src/utility/update-buffer.ts
@@ -48,7 +48,7 @@ export class Chunk {
48
(this._right ? this._right.length : 0)
49
);
50
}
51
- toString(encoding = 'utf-8') {
+ toString(encoding: BufferEncoding = 'utf-8') {
52
return (
53
(this._left ? this._left.toString(encoding) : '') +
54
(this._content ? this._content.toString(encoding) : '') +
@@ -234,7 +234,7 @@ export class UpdateBuffer {
234
return this._originalContent;
235
236
237
- toString(encoding = 'utf-8'): string {
+ toString(encoding: BufferEncoding = 'utf-8'): string {
238
return this._linkedList.reduce((acc, chunk) => acc + chunk.toString(encoding), '');
239
240
generate(): Buffer {
0 commit comments